final class ConsistencyToken
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
bytes
Byte array representation of the token.
|
private int |
hash
Cached hash code.
|
| Constructor and Description |
|---|
ConsistencyToken(byte[] bytes)
Create a new
ConsistencyToken instance. |
| Modifier and Type | Method and 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 a
BigInteger value. |
private final byte[] bytes
private int hash
ConsistencyToken(byte[] bytes)
ConsistencyToken instance.bytes - byte array representing the tokenpublic byte[] getBytes()
byte[] valuepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - another objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
BigInteger value. (For
debugging only.)toString in class java.lang.ObjectString valueApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.