Package pro.horde.os.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.ElseGeneratorFunction will have the same behavior as theDealerandRunnable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tgenerate()Generates values.
-
-
-
Method Detail
-
generate
T generate()
Generates values.- Returns:
- return generate values of T type.
- Since:
- 2.o
-
-