public class Group extends java.lang.Object implements java.lang.Comparable<Group>, java.io.Serializable
| Constructor and Description |
|---|
Group(int groupType,
int groupID)
Constructs a Group from its Type and ID
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Group otherGroup)
Compares this Group with the specified Group
|
boolean |
equals(java.lang.Object otherGroup) |
int |
getGroupID() |
int |
getGroupType() |
int |
hashCode() |
void |
setGroupID(int groupID) |
void |
setGroupType(int groupType) |
java.lang.String |
toString() |
public Group(int groupType,
int groupID)
groupType - The type of the GroupgroupID - The Groupīs IDpublic int compareTo(Group otherGroup)
compareTo in interface java.lang.Comparable<Group>public int getGroupType()
public void setGroupType(int groupType)
public int getGroupID()
public void setGroupID(int groupID)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object otherGroup)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object