Package it.tidalwave.role
Interface 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 SimpleComposite<TYPE> extends Composite<TYPE,Finder<? extends TYPE>>
- 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>, Composite.VisitorSupport<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 <TYPE> SimpleComposite<TYPE>
of(Finder<TYPE> finder)
Returns a wrappedSimpleComposite
on a givenFinder
static <TYPE> SimpleComposite<TYPE>
ofCloned(java.util.Collection<TYPE> items)
Returns a wrappedSimpleComposite
on a given collection of elements.-
Methods inherited from interface it.tidalwave.role.Composite
findChildren
-
-
-
-
Field Detail
-
_SimpleComposite_
static final java.lang.Class<SimpleComposite> _SimpleComposite_
-
-
Method Detail
-
of
@Nonnull static <TYPE> SimpleComposite<TYPE> of(Finder<TYPE> finder)
Returns a wrappedSimpleComposite
on a givenFinder
- Type Parameters:
TYPE
- the type of theFinder
- Parameters:
finder
- theFinder
- Returns:
- the wrapped
SimpleComposite
- Since:
- 3.2-ALPHA-1
-
ofCloned
@Nonnull static <TYPE> SimpleComposite<TYPE> ofCloned(@Nonnull java.util.Collection<TYPE> items)
Returns a wrappedSimpleComposite
on a given collection of elements. The collection is cloned and will be immutable- Type Parameters:
TYPE
- the type of theFinder
- Parameters:
items
- the objects to wrap- Returns:
- the wrapped
SimpleComposite
- Since:
- 3.2-ALPHA-1
-
-