Package de.presti.ree6.module
Interface IManager<R>
- Type Parameters:
R
- the Entity typ.
- All Known Implementing Classes:
GiveawayManager
public interface IManager<R>
Interface for a simple Manager for a specific Entity.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Add an object to the List.default void
clear()
Clear the List.default R
get
(long value) Get an object from the List.default R
Get an object from the List.getList()
Get the List.void
load()
Load the needed data.default void
Remove an object from the List.default void
Replace the List with a new one.
-
Method Details
-
load
void load()Load the needed data. -
add
Add an object to the List.- Parameters:
object
- the object to add.
-
remove
Remove an object from the List.- Parameters:
object
- the object to remove.
-
clear
default void clear()Clear the List. -
replace
Replace the List with a new one.- Parameters:
newList
- the new List.
-
get
Get an object from the List.- Parameters:
value
- the value to search for.- Returns:
- the object.
- Throws:
UnsupportedOperationException
- if the method is not implemented.
-
get
Get an object from the List.- Parameters:
value
- the value to search for.- Returns:
- the object.
- Throws:
UnsupportedOperationException
- if the method is not implemented.
-
getList
Get the List.- Returns:
- the List.
-