Method from org.apache.activemq.command.SessionId Detail: |
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || o.getClass() != SessionId.class) {
return false;
}
SessionId id = (SessionId)o;
return value == id.value && connectionId.equals(id.connectionId);
}
|
public String getConnectionId() {
return connectionId;
}
|
public byte getDataStructureType() {
return DATA_STRUCTURE_TYPE;
}
|
public ConnectionId getParentId() {
if (parentId == null) {
parentId = new ConnectionId(this);
}
return parentId;
}
|
public long getValue() {
return value;
}
|
public int hashCode() {
if (hashCode == 0) {
hashCode = connectionId.hashCode() ^ (int)value;
}
return hashCode;
}
|
public boolean isMarshallAware() {
return false;
}
|
public void setConnectionId(String connectionId) {
this.connectionId = connectionId;
}
|
public void setValue(long sessionId) {
this.value = sessionId;
}
|
public String toString() {
if (key == null) {
key = connectionId + ":" + value;
}
return key;
}
|