Class UniqueId
java.lang.Object
org.apache.catalina.tribes.UniqueId
- All Implemented Interfaces:
Serializable
Represents a globally unique Id.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UniqueId
public UniqueId()Constructs a new UniqueId with a null identifier. -
UniqueId
public UniqueId(byte[] id) Constructs a new UniqueId from the given byte array.- Parameters:
id- the byte array containing the identifier
-
UniqueId
public UniqueId(byte[] id, int offset, int length) Constructs a new UniqueId from a portion of the given byte array.- Parameters:
id- the source byte arrayoffset- the start offsetlength- the number of bytes
-
-
Method Details
-
hashCode
-
equals
-
getBytes
public byte[] getBytes()Returns the raw bytes of this unique identifier.- Returns:
- the byte array
-
toString
-