com.natpryce.makeiteasy
Interface PropertyLookup<T>
- Type Parameters:
T - type type of object for which the properties apply.
- All Known Implementing Classes:
- Maker
public interface PropertyLookup<T>
Looks up property values.
valueOf
<V> V valueOf(Property<? super T,V> property,
V defaultValue)
- Type Parameters:
V - the type of the value- Parameters:
property - the property for which a value will be returneddefaultValue - the default value to use if no value can be found
- Returns:
- the value for the given property, or defaultValue if no value can be found.
valueOf
<V> V valueOf(Property<? super T,V> property,
Donor<? extends V> defaultValueDonor)
- Type Parameters:
V - the type of the value- Parameters:
property - the property for which a value will be returneddefaultValueDonor - an object that can provide the default value to use if no value can be found
- Returns:
- the value for the given property, or defaultValueDonor.value() if no value can be found.
Copyright © 2010. All Rights Reserved.