Package preponderous.ponder.misc
Class Group<T>
java.lang.Object
preponderous.ponder.misc.Group<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a member to the group.This can be utilized to access the description of the group.This can be utilized to access the list of members.getName()
This can utilized to access the name of the group.int
This can be used to get the number of members in the group.boolean
Checks if a member is a member of the group.void
removeMember(T T)
Removes a member from the group.void
setDescription(String newDesc)
Sets the description of the group.void
Sets the name of the group.
-
Field Details
-
name
-
description
-
members
-
-
Constructor Details
-
Group
-
-
Method Details
-
setName
Sets the name of the group.- Parameters:
newName
- The new name of the group.
-
getName
This can utilized to access the name of the group.- Returns:
- The current name of the group.
-
setDescription
Sets the description of the group.- Parameters:
newDesc
- The new description of the group.
-
getDescription
This can be utilized to access the description of the group.- Returns:
- The description of the group.
-
addMember
Adds a member to the group.- Parameters:
T
- The T of the member to add.
-
removeMember
Removes a member from the group.- Parameters:
T
- The T of the member to remove.
-
isMember
Checks if a member is a member of the group.- Parameters:
T
- The T of the member to check.- Returns:
- Whether the member is a member of the group.
-
getMemberList
This can be utilized to access the list of members.- Returns:
- The list of members.
-
getPopulation
public int getPopulation()This can be used to get the number of members in the group.- Returns:
- The number of members in the group.
-