ENTITY
- the entity@GeneratedCode(value="Speedment") @FunctionalInterface public interface IntGetter<ENTITY> extends Getter<ENTITY>, ToIntFunction<ENTITY>
getXXX(value)
method for a
particular field in an entity.
A IntegerGetter<ENTITY>
has the following signature:
interface ENTITY {
int getXXX();
}
Modifier and Type | Method and Description |
---|---|
default Integer |
apply(ENTITY instance)
A generic (untyped) get method.
|
int |
applyAsInt(ENTITY instance)
Returns the member represented by this getter in the specified instance.
|
default Function<ENTITY,Integer> |
asFunction()
Returns this object, typed as a
Function method. |
int applyAsInt(ENTITY instance)
applyAsInt
in interface ToIntFunction<ENTITY>
instance
- the instance to get fromdefault Integer apply(ENTITY instance)
Getter
Copyright © 2019 Speedment, Inc.. All rights reserved.