Package it.tidalwave.role
Interface Composite<TYPE,SPECIALIZED_FINDER extends Finder<? extends TYPE>>
-
- All Known Subinterfaces:
SimpleComposite<TYPE>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Composite<TYPE,SPECIALIZED_FINDER extends Finder<? extends TYPE>>
The role of a composite object, that is an object which contains children. They are exposed by means of aFinder
.- Author:
- Fabrizio Giudici
- Status: stable API
- Stereotype:
- Role
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Composite.Visitor<T,R>
static class
Composite.VisitorSupport<T,R>
A support class forComposite.Visitor
which provides default empty methods.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<Composite>
_Composite_
static Composite<java.lang.Object,Finder<java.lang.Object>>
DEFAULT
A defaultComposite
with no children.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SPECIALIZED_FINDER
findChildren()
Returns the children of this object.
-
-
-
Method Detail
-
findChildren
@Nonnull SPECIALIZED_FINDER findChildren()
Returns the children of this object.- Returns:
- the children
-
-