Top Description Fields Constructors Methods
org.apache.derby.impl.drda

pack-priv final Class ConsistencyToken

extends Object
Class Inheritance

Class which represents an RDB Package Consistency Token.

Field Summary

Modifier and TypeField and Description
private final byte[]
bytes

Byte array representation of the token.

private int
hash

Cached hash code.

Constructor Summary

AccessConstructor and Description
pack-priv
ConsistencyToken(byte[]
byte array representing the token
bytes
)

Create a new ConsistencyToken instance.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the objects are equal
equals
(Object
another object
o
)

Overrides java.lang.Object.equals.

Check whether this object is equal to another object.
public byte[]

Returns:

a byte[] value
getBytes
()

Get the byte array representation of the consistency token.

public int

Returns:

hash code
hashCode
()

Overrides java.lang.Object.hashCode.

Calculate the hash code.
public String

Returns:

a String value
toString
()

Overrides java.lang.Object.toString.

Return a string representation of the consistency token by converting it to a BigInteger value.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

bytesback to summary
private final byte[] bytes

Byte array representation of the token.

hashback to summary
private int hash

Cached hash code.

Constructor Detail

ConsistencyTokenback to summary
pack-priv ConsistencyToken(byte[] bytes)

Create a new ConsistencyToken instance.

Parameters
bytes:byte[]

byte array representing the token

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Check whether this object is equal to another object.

Parameters
o:Object

another object

Returns:boolean

true if the objects are equal

getBytesback to summary
public byte[] getBytes()

Get the byte array representation of the consistency token.

Returns:byte[]

a byte[] value

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Calculate the hash code.

Returns:int

hash code

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return a string representation of the consistency token by converting it to a BigInteger value. (For debugging only.)

Returns:String

a String value