Class CoreManagerSet<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(T item)
      Add new item to the collection
      java.util.Collection<T> collection()
      Collection which contain all items The collection is represent for storage kind (List, Set,...)
      @NotNull java.util.Iterator<T> iterator()  
      void remove​(T item)
      Remove existed item out of collection.
      java.util.stream.Stream<T> stream()
      Get Stream API (Java 8) of current CoreManager.collection()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.playernguyen.playernguyencore.manager.CoreManager

        clear
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • CoreManagerSet

        public CoreManagerSet​(java.util.Set<T> collection)
      • CoreManagerSet

        public CoreManagerSet()
    • Method Detail

      • collection

        public java.util.Collection<T> collection()
        Description copied from interface: CoreManager
        Collection which contain all items The collection is represent for storage kind (List, Set,...)
        Specified by:
        collection in interface CoreManager<T>
        Returns:
        Current collection of manager class
      • add

        public void add​(T item)
        Description copied from interface: CoreManager
        Add new item to the collection
        Specified by:
        add in interface CoreManager<T>
        Parameters:
        item - The item to add into collection
      • remove

        public void remove​(T item)
        Description copied from interface: CoreManager
        Remove existed item out of collection. Using Collection.remove(Object) to remove item from CoreManager.collection()
        Specified by:
        remove in interface CoreManager<T>
        Parameters:
        item - The item to remove out of collection
      • iterator

        @NotNull
        public @NotNull java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>