org.resilientedge.jockey.peer
Class PeerGroupToken
java.lang.Object
|
+--org.resilientedge.jockey.peer.PeerGroupToken
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class PeerGroupToken
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
A representation of a group that exists on the peer network.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- John Gardner
- See Also:
- Serialized Form
Method Summary |
int |
compareTo(java.lang.Object other)
Returns zero if the other group token is the same as this token. |
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this group. |
java.lang.String |
getGroupId()
Gets the group id |
PeerNetwork |
getPeerNetwork()
Gets the peer network that the group belongs |
void |
setGroupId(java.lang.String newValue)
Sets the group id |
void |
setPeerNetwork(PeerNetwork newValue)
Sets the peer network that the group belongs |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WORLD_PEER_GROUP
public static final PeerGroupToken WORLD_PEER_GROUP
- The token for the world peer group
PeerGroupToken
public PeerGroupToken()
setGroupId
public void setGroupId(java.lang.String newValue)
- Sets the group id
- Parameters:
newValue
- The new GroupId value
setPeerNetwork
public void setPeerNetwork(PeerNetwork newValue)
- Sets the peer network that the group belongs
- Parameters:
newValue
- The new PeerNetwork value
getGroupId
public java.lang.String getGroupId()
- Gets the group id
- Returns:
- The GroupId value
getPeerNetwork
public PeerNetwork getPeerNetwork()
- Gets the peer network that the group belongs
- Returns:
- The PeerNetwork value
compareTo
public int compareTo(java.lang.Object other)
- Returns zero if the other group token is the same as this token.
- Specified by:
compareTo
in interface java.lang.Comparable
- Parameters:
other
- network to compare- Returns:
- a positive or negative integer, or zero
equals
public boolean equals(java.lang.Object other)
- Indicates whether some other object is "equal to" this group.
- Overrides:
equals
in class java.lang.Object
- Parameters:
other
- object to compare- Returns:
- true if equal
Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.