public static class ValueProvider.RuntimeValueProvider<T> extends java.lang.Object implements ValueProvider<T>, java.io.Serializable
ValueProvider.RuntimeValueProvider
is an implementation of ValueProvider
that allows for a
value to be provided at execution time rather than at graph construction time.
To enforce this contract, if there is no default, users must only call get()
at
execution time (after a call to Pipeline.run()
), which will provide
the value of optionsMap
.
ValueProvider.Deserializer, ValueProvider.NestedValueProvider<T,X>, ValueProvider.RuntimeValueProvider<T>, ValueProvider.Serializer, ValueProvider.StaticValueProvider<T>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object other) |
T |
get()
Returns the runtime value wrapped by this
ValueProvider in case it is ValueProvider.isAccessible() , otherwise fails. |
int |
hashCode() |
boolean |
isAccessible()
Whether the contents of this
ValueProvider is currently available via ValueProvider.get() . |
java.lang.String |
propertyName()
Returns the property name that corresponds to this provider.
|
java.lang.String |
toString() |
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
public boolean equals(@Nullable java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object