Interface Generator<T>

  • Type Parameters:
    T - type of value.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface Generator<T>
    Represent operations that will return unique/generated values every time generate() is called. Please note that the onus is on you to provide the implementation that will return the unique values.Else Generator Function will have the same behavior as the Dealer and Runnable.
    Since:
    1.0
    Author:
    , Bobai Kato
    See Also:
    Runnable, Dealer
    • Method Detail

      • generate

        T generate()
        Generates values.
        Returns:
        return generate values of T type.
        Since:
        1.0