public static class ValueProvider.StaticValueProvider<T> extends java.lang.Object implements ValueProvider<T>, java.io.Serializable
ValueProvider.StaticValueProvider is an implementation of ValueProvider that allows for a
static value to be provided.ValueProvider.Deserializer, ValueProvider.NestedValueProvider<T,X>, ValueProvider.RuntimeValueProvider<T>, ValueProvider.Serializer, ValueProvider.StaticValueProvider<T>| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the runtime value wrapped by this
ValueProvider in case it is ValueProvider.isAccessible(), otherwise fails. |
boolean |
isAccessible()
Whether the contents of this
ValueProvider is currently available via ValueProvider.get(). |
static <T> ValueProvider.StaticValueProvider<T> |
of(T value)
Creates a
ValueProvider.StaticValueProvider that wraps the provided value. |
java.lang.String |
toString() |
public static <T> ValueProvider.StaticValueProvider<T> of(T value)
ValueProvider.StaticValueProvider that wraps the provided value.public T get()
ValueProviderValueProvider in case it is ValueProvider.isAccessible(), otherwise fails.get in interface ValueProvider<T>public boolean isAccessible()
ValueProviderValueProvider is currently available via ValueProvider.get().isAccessible in interface ValueProvider<T>public java.lang.String toString()
toString in class java.lang.Object