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