Class CoreManagerSet<T>
- java.lang.Object
-
- com.playernguyen.playernguyencore.manager.CoreManagerSet<T>
-
- All Implemented Interfaces:
CoreManager<T>
,java.lang.Iterable<T>
- Direct Known Subclasses:
CoreExecutorManager
,CoreListenerManager
,PermissionsManager
public class CoreManagerSet<T> extends java.lang.Object implements CoreManager<T>
-
-
Constructor Summary
Constructors Constructor Description CoreManagerSet()
CoreManagerSet(java.util.Set<T> collection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T item)
Add new item to the collectionjava.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 currentCoreManager.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
-
-
-
-
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 interfaceCoreManager<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 interfaceCoreManager<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. UsingCollection.remove(Object)
to remove item fromCoreManager.collection()
- Specified by:
remove
in interfaceCoreManager<T>
- Parameters:
item
- The item to remove out of collection
-
stream
public java.util.stream.Stream<T> stream()
Description copied from interface:CoreManager
Get Stream API (Java 8) of currentCoreManager.collection()
- Specified by:
stream
in interfaceCoreManager<T>
- Returns:
- the
Collection.stream()
methods
-
-