org.axiondb.engine.rows

Class BaseRow

public abstract class BaseRow extends Object implements Row

An abstract base implementation of Row, providing equals, hashCode and toString implementations.

Version: $Revision: 1.3 $ $Date: 2005/12/22 09:02:30 $

Author: Rodney Waldhoff Ahimanikya Satapathy

Field Summary
protected int_hash
Cache the hash code for the string
Method Summary
booleanequals(Object that)
Returns true iff that is a Row with the same number of fields and each is equal to the corresponding field in me.
intgetIdentifier()
inthashCode()
Return a hash code for me, in keeping with the generic Object#hashCode contract.
voidsetIdentifier(int id)
StringtoString()
Returns a simple String representation of me, perhaps suitable for debugging purposes.

Field Detail

_hash

protected int _hash
Cache the hash code for the string

Method Detail

equals

public boolean equals(Object that)
Returns true iff that is a Row with the same number of fields and each is equal to the corresponding field in me.

Adheres to the generic Object#equals contract.

getIdentifier

public int getIdentifier()

hashCode

public int hashCode()
Return a hash code for me, in keeping with the generic Object#hashCode contract.

setIdentifier

public void setIdentifier(int id)

toString

public String toString()
Returns a simple String representation of me, perhaps suitable for debugging purposes.