Package it.tidalwave.role
Interface Aggregate<T>
- All Known Implementing Classes:
PresentationModelAggregate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The role of an aggregate object, that is an object which contains other named objects.
- Author:
- Fabrizio Giudici
- Stereotype:
- Role
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns an object given its name.getNames()
Returns the names of contained objects.static <T> Aggregate
<T> Returns a new empty instance that will be populated by means ofwith(String, Object)
.static <T> Aggregate
<T> Returns a new instance with the specified (name, value) pair.static <T> Aggregate
<T> Returns a new instance with the specified (name, value) pairs.Returns a new instance with the specified (name, value) pair.
-
Field Details
-
_Aggregate_
-
-
Method Details
-
getByName
Returns an object given its name.- Parameters:
name
- the name- Returns:
- the object
-
getNames
Returns the names of contained objects.- Returns:
- the names of the objects
- Since:
- 3.1-ALPHA-8
-
of
Returns a new instance with the specified (name, value) pairs.- Type Parameters:
T
- the static type of the value- Parameters:
mapByName
- the map containing the pairs- Returns:
- the new instance
- Since:
- 3.2-ALPHA-1
-
newInstance
Returns a new empty instance that will be populated by means ofwith(String, Object)
.- Type Parameters:
T
- the static type of the aggregate- Returns:
- the new instance
- Since:
- 3.2-ALPHA-2
-
of
Returns a new instance with the specified (name, value) pair.- Type Parameters:
T
- the static type of the aggregate- Parameters:
name
- the name in the pairvalue
- the value in the pair- Returns:
- the new instance
- Since:
- 3.2-ALPHA-1
-
with
Returns a new instance with the specified (name, value) pair.- Parameters:
name
- the name in the pairvalue
- the value in the pair- Returns:
- the new instance
- Since:
- 3.2-ALPHA-1
-