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()
Return the value wrapped by this
ValueProvider . |
boolean |
isAccessible()
Whether the contents of this
ValueProvider is available to
routines that run at graph construction time. |
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()
ValueProvider
ValueProvider
.get
in interface ValueProvider<T>
public boolean isAccessible()
ValueProvider
ValueProvider
is available to
routines that run at graph construction time.isAccessible
in interface ValueProvider<T>
public java.lang.String toString()
toString
in class java.lang.Object