Package me.totalfreedom.data
Class GroupRegistry
java.lang.Object
me.totalfreedom.data.GroupRegistry
A registry for
Groups.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a group by name.booleanregisterGroup(Group group) Registers a group.booleanunregisterGroup(Group group) Unregisters a group.
-
Constructor Details
-
GroupRegistry
public GroupRegistry()Creates a new group registry.
-
-
Method Details
-
registerGroup
Registers a group.- Parameters:
group- The group to register.- Returns:
trueif the group was registered,falseotherwise.
-
unregisterGroup
Unregisters a group.- Parameters:
group- The group to unregister.- Returns:
trueif the group was unregistered,falseotherwise.
-
getGroup
Gets a group by name.- Parameters:
name- The name of the group.- Returns:
- The group, or
nullif no group was found.
-
getGroups
- Returns:
- The list of groups.
-