public class ListSupplier<T> extends java.lang.Object implements ResettableSupplier<T>
Constructor and Description |
---|
ListSupplier(java.lang.Iterable<T> iterable)
Creates a supplier based on the current iterable values.
|
ListSupplier(T first,
T... inputArray)
Creates a supplier based on the current list.
|
Modifier and Type | Method and Description |
---|---|
T |
get() |
void |
reset()
Resets the state of this supplier so that the next call to
get() returns as if it were the first time the method were called |
public ListSupplier(@NotNull java.lang.Iterable<T> iterable)
iterable
- The input iterable of values (note any null values will be stripped automatically)@SafeVarargs public ListSupplier(@Nullable T first, @NotNull T... inputArray)
first
- The first elementinputArray
- The input array of values (note any null values will be stripped automatically)public void reset()
ResettableSupplier
get()
returns as if it were the first time the method were calledreset
in interface ResettableSupplier<T>