Package org.apache.derby.impl.drda
Class ConsistencyToken
- java.lang.Object
-
- org.apache.derby.impl.drda.ConsistencyToken
-
final class ConsistencyToken extends java.lang.ObjectClass which represents an RDB Package Consistency Token.
-
-
Constructor Summary
Constructors Constructor Description ConsistencyToken(byte[] bytes)Create a newConsistencyTokeninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Check whether this object is equal to another object.byte[]getBytes()Get the byte array representation of the consistency token.inthashCode()Calculate the hash code.java.lang.StringtoString()Return a string representation of the consistency token by converting it to aBigIntegervalue.
-
-
-
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:
equalsin classjava.lang.Object- Parameters:
o- another object- Returns:
- true if the objects are equal
-
hashCode
public int hashCode()
Calculate the hash code.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hash code
-
toString
public java.lang.String toString()
Return a string representation of the consistency token by converting it to aBigIntegervalue. (For debugging only.)- Overrides:
toStringin classjava.lang.Object- Returns:
- a
Stringvalue
-
-