Package it.tidalwave.role
Interface SimpleComposite<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.tidalwave.role.Composite
Composite.Visitor<T,R>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<SimpleComposite>
_SimpleComposite_
-
Fields inherited from interface it.tidalwave.role.Composite
_Composite_, DEFAULT
-
-
Method Summary
Static Methods Modifier and Type Method Description static <U> SimpleComposite<U>
of(Finder<U> finder)
Returns a wrappedSimpleComposite
on a givenFinder
static <U> SimpleComposite<U>
ofCloned(java.util.Collection<? extends U> items)
Returns a wrappedSimpleComposite
on a given collection of elements.-
Methods inherited from interface it.tidalwave.role.Composite
findChildren, forEach, stream
-
-
-
-
Field Detail
-
_SimpleComposite_
static final java.lang.Class<SimpleComposite> _SimpleComposite_
-
-
Method Detail
-
of
@Nonnull static <U> SimpleComposite<U> of(@Nonnull Finder<U> finder)
Returns a wrappedSimpleComposite
on a givenFinder
- Type Parameters:
U
- the type of theFinder
- Parameters:
finder
- theFinder
- Returns:
- the wrapped
SimpleComposite
- Since:
- 3.2-ALPHA-1
-
ofCloned
@Nonnull static <U> SimpleComposite<U> ofCloned(@Nonnull java.util.Collection<? extends U> items)
Returns a wrappedSimpleComposite
on 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
-
-