Package it.tidalwave.role
Interface 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.
- Author:
- Fabrizio Giudici
- Status: stable API
- Stereotype:
- Role
-
Nested Class Summary
Nested classes/interfaces inherited from interface it.tidalwave.role.Composite
Composite.Visitor<T,R> -
Field Summary
FieldsFields inherited from interface it.tidalwave.role.Composite
_Composite_, DEFAULT -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <U> SimpleComposite<U> Returns a wrappedSimpleCompositeon a givenFinderstatic <U> SimpleComposite<U> ofCloned(Collection<? extends U> items) Returns a wrappedSimpleCompositeon a given collection of elements.Methods inherited from interface it.tidalwave.role.Composite
findChildren, forEach, stream
-
Field Details
-
_SimpleComposite_
-
-
Method Details
-
of
Returns a wrappedSimpleCompositeon a givenFinder- Type Parameters:
U- the type of theFinder- Parameters:
finder- theFinder- Returns:
- the wrapped
SimpleComposite - Since:
- 3.2-ALPHA-1
-
ofCloned
Returns a wrappedSimpleCompositeon a given collection of elements. The collection is cloned and will be immutable- Type Parameters:
U- the type of theFinder- Parameters:
items- the objects to wrap- Returns:
- the wrapped
SimpleComposite - Since:
- 3.2-ALPHA-1
-