Package org.apache.wicket.util
Class ValueProvider<T>
- java.lang.Object
-
- org.apache.wicket.util.ValueProvider<T>
-
- Type Parameters:
T
- type of value this provider provides
- All Implemented Interfaces:
Supplier<T>
public class ValueProvider<T> extends Object implements Supplier<T>
Provider that always provides the specified value.- Author:
- igor.vaynberg
-
-
Constructor Summary
Constructors Constructor Description ValueProvider(T value)
Construct.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
static <T> ValueProvider<T>
of(T value)
Creates a provider for the specified value
-
-
-
Constructor Detail
-
ValueProvider
public ValueProvider(T value)
Construct.- Parameters:
value
- value to provide
-
-