Interface Aggregate
- All Known Subinterfaces:
Factory<I>
public interface Aggregate
An object with dependencies.
By default, Aggregate
s have no dependencies.
- Author:
- Laird Nelson
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SequencedSet
<Assignment<?>> An immutable, emptySequencedSet
ofAssignment
s.static final SequencedSet
<AttributedElement> An immutable, emptySequencedSet
ofAttributedElement
s. -
Method Summary
Modifier and TypeMethodDescriptiondefault SequencedSet
<? extends Assignment<?>> assign
(Function<? super AttributedType, ?> r) A convenience method that assigns a contextual reference to each of thisAggregate
'sAttributedElement
instances and returns the resultingSequencedSet
ofAssignment
s.default SequencedSet
<AttributedElement> Returns an immutableSequencedSet
ofAttributedElement
instances.
-
Field Details
-
EMPTY_ASSIGNMENTS
An immutable, emptySequencedSet
ofAssignment
s. -
EMPTY_DEPENDENCIES
An immutable, emptySequencedSet
ofAttributedElement
s.
-
-
Method Details
-
dependencies
Returns an immutableSequencedSet
ofAttributedElement
instances.- Returns:
- an immutable
SequencedSet
ofAttributedElement
instances; nevernull
- See Also:
-
assign
A convenience method that assigns a contextual reference to each of thisAggregate
'sAttributedElement
instances and returns the resultingSequencedSet
ofAssignment
s.Typically there is no need to override this method.
- Parameters:
r
- aFunction
that retrieves a contextual reference suitable for anAttributedType
; ifdependencies()
returns a non-emptySequencedSet
then this argument must not benull
; normally a reference to theRequest.reference(AttributedType)
method- Returns:
- an immutable
SequencedSet
ofAssignment
instances; nevernull
- Throws:
NullPointerException
- ifr
isnull
-