- All Implemented Interfaces:
Supplier<V>
A value supplier is a supplier that just returns a predetermined value.
-
Constructor Summary
Constructors
Creates a new value supplier with a given value.
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ValueSupplier
public ValueSupplier(V value)
Creates a new value supplier with a given value.
- Parameters:
value - the value to return
-