Interface CoreManager<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void add​(T item)
      Add new item to the collection
      default void clear()
      Clear all item out of collection
      java.util.Collection<T> collection()
      Collection which contain all items The collection is represent for storage kind (List, Set,...)
      void remove​(T item)
      Remove existed item out of collection.
      java.util.stream.Stream<T> stream()
      Get Stream API (Java 8) of current collection()
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Method Detail

      • collection

        java.util.Collection<T> collection()
        Collection which contain all items The collection is represent for storage kind (List, Set,...)
        Returns:
        Current collection of manager class
      • add

        void add​(T item)
        Add new item to the collection
        Parameters:
        item - The item to add into collection
      • remove

        void remove​(T item)
        Remove existed item out of collection. Using Collection.remove(Object) to remove item from collection()
        Parameters:
        item - The item to remove out of collection
      • stream

        java.util.stream.Stream<T> stream()
        Get Stream API (Java 8) of current collection()
        Returns:
        the Collection.stream() methods
      • clear

        default void clear()
        Clear all item out of collection