Interface SimpleComposite<T>

  • All Superinterfaces:
    Composite<T,​Finder<T>>
    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<T>
    extends Composite<T,​Finder<T>>
    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 <U> SimpleComposite<U> of​(@Nonnull
                                         Finder<U> finder)
        Returns a wrapped SimpleComposite on a given Finder
        Type Parameters:
        U - the type of the Finder
        Parameters:
        finder - the Finder
        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 wrapped SimpleComposite on a given collection of elements. The collection is cloned and will be immutable
        Type Parameters:
        U - the type of the Finder
        Parameters:
        items - the objects to wrap
        Returns:
        the wrapped SimpleComposite
        Since:
        3.2-ALPHA-1