Interface SimpleComposite<TYPE>

  • All Superinterfaces:
    Composite<TYPE,​Finder<? extends 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>>
    A simple Composite that uses the default Finder.
    Author:
    Fabrizio Giudici
    Status: stable API
    Stereotype:
    Role
    • Field Detail

      • _SimpleComposite_

        static final java.lang.Class<SimpleComposite> _SimpleComposite_
    • Method Detail

      • of

        @Nonnull
        static <TYPE> SimpleComposite<TYPE> of​(Finder<TYPE> finder)
        Returns a wrapped SimpleComposite on a given Finder
        Type Parameters:
        TYPE - the type of the Finder
        Parameters:
        finder - the Finder
        Returns:
        the wrapped SimpleComposite
        Since:
        3.2-ALPHA-1
      • ofCloned

        @Nonnull
        static <TYPE> SimpleComposite<TYPE> ofCloned​(@Nonnull
                                                     java.util.Collection<TYPE> items)
        Returns a wrapped SimpleComposite on a given collection of elements. The collection is cloned and will be immutable
        Type Parameters:
        TYPE - the type of the Finder
        Parameters:
        items - the objects to wrap
        Returns:
        the wrapped SimpleComposite
        Since:
        3.2-ALPHA-1