Interface CoreManager<T>
-
- All Superinterfaces:
java.lang.Iterable<T>
- All Known Implementing Classes:
CoreExecutorManager
,CoreListenerManager
,CoreManagerList
,CoreManagerSet
,PermissionsManager
public interface CoreManager<T> extends java.lang.Iterable<T>
A immutable class to store item. This can store any type likeList
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
add(T item)
Add new item to the collectiondefault void
clear()
Clear all item out of collectionjava.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 currentcollection()
-
-
-
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. UsingCollection.remove(Object)
to remove item fromcollection()
- Parameters:
item
- The item to remove out of collection
-
stream
java.util.stream.Stream<T> stream()
Get Stream API (Java 8) of currentcollection()
- Returns:
- the
Collection.stream()
methods
-
clear
default void clear()
Clear all item out of collection
-
-