Class Group<T>

java.lang.Object
preponderous.ponder.misc.Group<T>

public class Group<T> extends Object
  • Field Details

    • name

      protected String name
    • description

      protected String description
    • members

      protected ArrayList<T> members
  • Constructor Details

  • Method Details

    • setName

      public void setName(String newName)
      Sets the name of the group.
      Parameters:
      newName - The new name of the group.
    • getName

      public String getName()
      This can utilized to access the name of the group.
      Returns:
      The current name of the group.
    • setDescription

      public void setDescription(String newDesc)
      Sets the description of the group.
      Parameters:
      newDesc - The new description of the group.
    • getDescription

      public String getDescription()
      This can be utilized to access the description of the group.
      Returns:
      The description of the group.
    • addMember

      public void addMember(T T)
      Adds a member to the group.
      Parameters:
      T - The T of the member to add.
    • removeMember

      public void removeMember(T T)
      Removes a member from the group.
      Parameters:
      T - The T of the member to remove.
    • isMember

      public boolean isMember(T T)
      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

      public ArrayList<T> 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.