public static class ValueProvider.NestedValueProvider<T,X> extends java.lang.Object implements ValueProvider<T>, java.io.Serializable
ValueProvider.NestedValueProvider
is an implementation of ValueProvider
that
allows for wrapping another ValueProvider
object.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,X> ValueProvider.NestedValueProvider<T,X> |
of(ValueProvider<X> value,
SerializableFunction<X,T> translator)
Creates a
ValueProvider.NestedValueProvider that wraps the provided value. |
java.lang.String |
propertyName()
Returns the property name associated with this provider.
|
java.lang.String |
toString() |
public static <T,X> ValueProvider.NestedValueProvider<T,X> of(ValueProvider<X> value, SerializableFunction<X,T> translator)
ValueProvider.NestedValueProvider
that wraps the provided value.public T get()
ValueProvider
ValueProvider
in case it is ValueProvider.isAccessible()
, otherwise fails.get
in interface ValueProvider<T>
public boolean isAccessible()
ValueProvider
ValueProvider
is currently available via ValueProvider.get()
.isAccessible
in interface ValueProvider<T>
public java.lang.String propertyName()
public java.lang.String toString()
toString
in class java.lang.Object