| java.lang.Object com.tc.util.AbstractIdentifier
All known Subclasses: com.tc.object.ObjectID, com.tc.object.tx.TxnBatchID, com.tc.util.SequenceID, com.tc.object.gtx.GlobalTransactionID, com.tc.object.lockmanager.api.ThreadID, com.tc.net.protocol.tcm.ChannelID, com.tc.net.protocol.NetworkStackID, com.tc.object.tx.TransactionID, com.tc.object.session.SessionID, com.tc.net.groups.MessageID, com.tc.object.ObjectRequestID,
AbstractIdentifier | abstract public class AbstractIdentifier implements Comparable,Serializable(Code) | | Generic Identifier class, parent class of many ID types. Legal identifiers are expected to be >= 0 and -1 represents
a "null" identifier.
author: steve |
Method Summary | |
public int | compareTo(Object o) | public boolean | equals(Object obj) Equality is based on the id value and the identifier class. | abstract public String | getIdentifierType() Subclasses of AbstractIdentifier specify their "type" by implementing this method and returning a string. | public int | hashCode() | public boolean | isNull() Check whether the identifier is null (-1). | final public long | toLong() | final public String | toString() |
AbstractIdentifier | public AbstractIdentifier(long id)(Code) | | Create an identifier with a long value, which is expected to be >= 0.
|
AbstractIdentifier | protected AbstractIdentifier()(Code) | | Create a null identifier
|
equals | public boolean equals(Object obj)(Code) | | Equality is based on the id value and the identifier class.
|
getIdentifierType | abstract public String getIdentifierType()(Code) | | Subclasses of AbstractIdentifier specify their "type" by implementing this method and returning a string. The type
is used in printing toString().
|
hashCode | public int hashCode()(Code) | | |
isNull | public boolean isNull()(Code) | | Check whether the identifier is null (-1).
True if -1, false otherwise |
toLong | final public long toLong()(Code) | | Convert to long
Long identifier value |
|
|