Package guru.mikelue.foxglove.functional
Interface StatefulSupplier<T>
- Type Parameters:
T- The type of results supplied by this supplier
- All Superinterfaces:
Supplier<T>
- All Known Subinterfaces:
SequenceSupplier<T>
- All Known Implementing Classes:
Int4SequenceSupplier,Int8SequenceSupplier,RoundRobinValueSupplier,RowIndexToValueSupplier
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> StatefulSupplier<T> threadSafe(StatefulSupplier<T> sourceSupplier) Turns a thread-safe version of the given stateful supplier.
-
Method Details
-
threadSafe
Turns a thread-safe version of the given stateful supplier.- Type Parameters:
T- The type of results supplied by this supplier- Parameters:
sourceSupplier- The source stateful supplier- Returns:
- The thread-safe stateful supplier
-