Package org.apache.derby.impl.drda
Class ConsistencyToken
- java.lang.Object
-
- org.apache.derby.impl.drda.ConsistencyToken
-
final class ConsistencyToken extends java.lang.Object
Class which represents an RDB Package Consistency Token.
-
-
Constructor Summary
Constructors Constructor Description ConsistencyToken(byte[] bytes)
Create a newConsistencyToken
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Check whether this object is equal to another object.byte[]
getBytes()
Get the byte array representation of the consistency token.int
hashCode()
Calculate the hash code.java.lang.String
toString()
Return a string representation of the consistency token by converting it to aBigInteger
value.
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
Get the byte array representation of the consistency token.- Returns:
- a
byte[]
value
-
equals
public boolean equals(java.lang.Object o)
Check whether this object is equal to another object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- another object- Returns:
- true if the objects are equal
-
hashCode
public int hashCode()
Calculate the hash code.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hash code
-
toString
public java.lang.String toString()
Return a string representation of the consistency token by converting it to aBigInteger
value. (For debugging only.)- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
value
-
-