Module jpastreamer.field
Interface ReferenceGetter<ENTITY,V>
- Type Parameters:
ENTITY- the entityV- the type of the value to return
- All Known Subinterfaces:
GetReference<ENTITY,T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ReferenceGetter<ENTITY,V>
extends Getter<ENTITY>, Function<ENTITY,V>
A short-cut functional reference to the
getXXX() method for a
particular field in an entity.
A ReferenceGetter<ENTITY, V> has the following signature:
interface ENTITY {
V getXXX();
}
- Since:
- 2.2.0
- Author:
- Emil Forslund
-
Method Summary
Modifier and TypeMethodDescriptionReturns this object, typed as aFunctionmethod.
-
Method Details
-
asFunction
Description copied from interface:GetterReturns this object, typed as aFunctionmethod.- Specified by:
asFunctionin interfaceGetter<ENTITY>- Returns:
- this object as a function
-