Package org.apache.derby.impl.drda
Class ConsistencyToken
java.lang.Object
org.apache.derby.impl.drda.ConsistencyToken
Class which represents an RDB Package Consistency Token.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.toString()
Return a string representation of the consistency token by converting it to aBigInteger
value.
-
Field Details
-
bytes
private final byte[] bytesByte array representation of the token. -
hash
private int hashCached hash code.
-
-
Constructor Details
-
ConsistencyToken
ConsistencyToken(byte[] bytes) Create a newConsistencyToken
instance.- Parameters:
bytes
- byte array representing the token
-
-
Method Details
-
getBytes
public byte[] getBytes()Get the byte array representation of the consistency token.- Returns:
- a
byte[]
value
-
equals
Check whether this object is equal to another object. -
hashCode
public int hashCode()Calculate the hash code. -
toString
Return a string representation of the consistency token by converting it to aBigInteger
value. (For debugging only.)
-