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 voidAdd an object to the List.default voidclear()Clear the List.default Rget(long value) Get an object from the List.default RGet an object from the List.getList()Get the List.voidload()Load the needed data.default voidRemove an object from the List.default voidReplace 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.
-