Interface ValueProvider<T>
- Type Parameters:
T
- type of value
public interface ValueProvider<T>
Represents a value provider.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
refresh()
Refresh the current value by calling thevalueProvider()
value()
Get the current valuevoid
Change the current value.Returns a new value
-
Method Details
-
value
Change the current value.- Parameters:
value
- value to set
-
value
Get the current value- Returns:
- the value
-
valueProvider
T valueProvider()Returns a new value- Returns:
- new value
-
refresh
default void refresh()Refresh the current value by calling thevalueProvider()
-