ENTITY
- the entityV
- the type of the value to be set@FunctionalInterface public interface ReferenceSetter<ENTITY,V> extends Setter<ENTITY>, BiFunction<ENTITY,V,ENTITY>
setXXX(value)
method for a
particular field in an entity. The referenced method should return a
reference to itself.
A ReferenceSetter<ENTITY, V>
has the following signature:
interface ENTITY {
ENTITY setXXX(V value);
}
Modifier and Type | Method and Description |
---|---|
default ENTITY |
set(ENTITY entity,
Object value)
A generic (untyped) set-method.
|
andThen, apply
default ENTITY set(ENTITY entity, Object value) throws ClassCastException
Setter
ClassCastException
if the wrong type is given.set
in interface Setter<ENTITY>
entity
- the entity to set invalue
- the value to set toClassCastException
- if the specified value is of the wrong typeCopyright © 2017 Speedment, Inc.. All rights reserved.