T
- the type to read the property from@FunctionalInterface public interface Getter<T> extends TypedProperty, java.util.function.Function<T,java.lang.Object>
Modifier and Type | Method and Description |
---|---|
default java.lang.Object |
apply(T t)
Just invokes
get(Object) . |
java.lang.Object |
get(T t)
Reads a property value from the argument.
|
default PropertyType |
type() |
java.lang.Object get(T t)
t
- the source of the property valuedefault PropertyType type()
type
in interface TypedProperty
default java.lang.Object apply(T t)
get(Object)
.apply
in interface java.util.function.Function<T,java.lang.Object>
t
- the source of the property value