T
- the property typepublic class IdentityValueProvider<T> extends Object implements ValueProvider<T,T>
Constructor and Description |
---|
IdentityValueProvider()
Creates a new value provider with an empty string for the path.
|
IdentityValueProvider(String path)
Creates a new value provider.
|
Modifier and Type | Method and Description |
---|---|
String |
getPath()
Returns the path that this ValueProvider makes available, from the object,
to the value.
|
T |
getValue(T object)
Returns the property value of the given object.
|
void |
setValue(T object,
T value)
Sets the value of the given object
|
protected final String path
public IdentityValueProvider()
public IdentityValueProvider(String path)
path
- the pathpublic void setValue(T object, T value)
ValueProvider
setValue
in interface ValueProvider<T,T>
object
- the target objectvalue
- the property valuepublic T getValue(T object)
ValueProvider
getValue
in interface ValueProvider<T,T>
object
- the target objectpublic String getPath()
ValueProvider
getPath
in interface ValueProvider<T,T>
Copyright © 2018. All rights reserved.