spread
Class GroupID
java.lang.Object
|
+--spread.GroupID
- public class GroupID
- extends java.lang.Object
A GroupID represents a particular group membership view at a particular time in the history of the group.
A GroupID can be retrieved from a membership message using MembershipInfo.getGroupID()
.
To check if two GroupID's represent the same group, use equals(Object)
:
if(thisID.equals(thatID) == true)
System.out.println("Equal group ID's.");
Method Summary |
boolean |
equals(java.lang.Object object)
Returns true if the two GroupID's represent the same group membership view at the same point in time
in the history of the group. |
java.lang.String |
toString()
Converts the GroupID to a string. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
equals
public boolean equals(java.lang.Object object)
- Returns true if the two GroupID's represent the same group membership view at the same point in time
in the history of the group.
- Parameters:
object
- a GroupID to compare against- Returns:
- true if object is a GroupID object and the two GroupID's are the same
- Overrides:
- equals in class java.lang.Object
toString
public java.lang.String toString()
- Converts the GroupID to a string.
- Returns:
- the string form of this GroupID
- Overrides:
- toString in class java.lang.Object