Package art.cutils.function
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 timegenerate()
is called. Please note that the onus is on you to provide the implementation that will return the unique values.ElseGenerator
Function will have the same behavior as theDealer
andRunnable
.- Since:
- 1.0
- Author:
- , Bobai Kato
- See Also:
Runnable
,Dealer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
generate()
Generates values.
-
-
-
Method Detail
-
generate
T generate()
Generates values.- Returns:
- return generate values of T type.
- Since:
- 1.0
-
-