|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Mixins(value=EntityToValue.EntityToValueMixin.class) public interface EntityToValue
Nested Class Summary | |
---|---|
static class |
EntityToValue.EntityToValueMixin
|
Method Summary | ||
---|---|---|
|
convert(java.lang.Class<T> valueType,
java.lang.Iterable<java.lang.Object> entities)
Convert an iterable of entities to an iterable of values. |
|
|
convert(java.lang.Class<T> valueType,
java.lang.Iterable<java.lang.Object> entities,
Function<T,T> prototypeOpportunity)
Convert an iterable of entities to an iterable of values with an opportunity to customize their prototypes. |
|
|
convert(java.lang.Class<T> valueType,
java.lang.Object entity)
Convert an entity to a value. |
|
|
convert(java.lang.Class<T> valueType,
java.lang.Object entity,
Function<T,T> prototypeOpportunity)
Convert an entity to a value with an opportunity to customize its prototype. |
Method Detail |
---|
<T> T convert(java.lang.Class<T> valueType, java.lang.Object entity)
T
- parametrized type of the valuevalueType
- type of the valueentity
- the entity to convert to a value
<T> T convert(java.lang.Class<T> valueType, java.lang.Object entity, Function<T,T> prototypeOpportunity)
T
- parametrized type of the valuevalueType
- type of the valueentity
- the entity to convert to a valueprototypeOpportunity
- a Function that will be mapped on the value prototype before instanciantion
<T> java.lang.Iterable<T> convert(java.lang.Class<T> valueType, java.lang.Iterable<java.lang.Object> entities)
T
- parametrized type of the valuevalueType
- type of the valueentities
- the entities to convert to values
<T> java.lang.Iterable<T> convert(java.lang.Class<T> valueType, java.lang.Iterable<java.lang.Object> entities, Function<T,T> prototypeOpportunity)
T
- parametrized type of the valuevalueType
- type of the valueentities
- the entities to convert to valuesprototypeOpportunity
- a Function that will be mapped on each of the value prototypes before instanciation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |