Package org.bson.codecs.pojo
Interface PropertyAccessor<T>
- Type Parameters:
T
- the type of the property
public interface PropertyAccessor<T>
Provides access for getting and setting property data.
- Since:
- 3.5
-
Method Summary
-
Method Details
-
get
Gets the value for a given PropertyModel instance.- Type Parameters:
S
- the class instance type- Parameters:
instance
- the class instance to get the property value from- Returns:
- the value of the property.
-
set
Sets a value on the given PropertyModel- Type Parameters:
S
- the class instance type- Parameters:
instance
- the instance to set the property value tovalue
- the new value for the property
-