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 TypeMethodDescriptionbooleanCheck whether this object is equal to another object.byte[]getBytes()Get the byte array representation of the consistency token.inthashCode()Calculate the hash code.toString()Return a string representation of the consistency token by converting it to aBigIntegervalue.
-
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 newConsistencyTokeninstance.- 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
-
hashCode
-
toString
-