Package it.tidalwave.role
Interface Composite<T,F extends Finder<? extends T>>
- All Known Subinterfaces:
SimpleComposite<T>
- 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 a composite object, that is an object which contains children. They are exposed by means of a
Finder
.- Author:
- Fabrizio Giudici
- Status: stable API
- Stereotype:
- Role
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A visitor that can travel through theComposite
items. -
Field Summary
-
Method Summary
-
Field Details
-
_Composite_
-
DEFAULT
A defaultComposite
with no children.
-
-
Method Details
-
findChildren
Returns the children of this object..- Returns:
- the children of this object
-
stream
Returns a stream of children..- Returns:
- a stream of children
- Since:
- 3.2-ALPHA-23
-
forEach
Iterates through children.- Parameters:
consumer
- the consumer- Since:
- 3.2-ALPHA-23
-