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