Interface BeanContainer<T>

    • Method Detail

      • of

        static <T> BeanContainer<T> of​(T... entries)
        To list container bean.
        Type Parameters:
        T - the type parameter
        Parameters:
        entries - the entries
        Returns:
        the container bean
      • of

        static <T> BeanContainer<T> of​(java.util.List<T> entries)
        Contain items in a list..
        Type Parameters:
        T - the type parameter
        Parameters:
        entries - the entries
        Returns:
        the bean container
      • of

        static <T> BeanContainer<T> of​(java.util.Set<T> entries)
        Of bean container.
        Type Parameters:
        T - the type parameter
        Parameters:
        entries - the entries
        Returns:
        the bean container
      • empty

        static <T> BeanContainer<T> empty()
        Empty bean container.
        Type Parameters:
        T - the type parameter
        Returns:
        the bean container
      • toList

        java.util.List<T> toList()
        Gets items.
        Returns:
        the items
      • toSet

        java.util.Set<T> toSet()
        To set set.
        Returns:
        the set
      • and

        BeanContainer<T> and​(T entry)
        And include a single item..
        Parameters:
        entry - the entry
        Returns:
        the container bean
      • size

        int size()
        Size.
        Returns:
        the int
      • first

        T first()
        First entry in the container.
        Returns:
        the entry
      • isEmpty

        default boolean isEmpty()
        Is container empty?
        Returns:
        the boolean