org.axiondb.engine.rowcollection

Class IntHashMap.Entry

public static class IntHashMap.Entry extends Object

This class represents a IntHashMapentry.
Constructor Summary
protected Entry()
Default constructor (allows sub-classing).
Method Summary
booleanequals(Object that)
Indicates if this entry is considered equals to the specified entry (default object equality to ensure symetry)
intgetKey()
Returns the key for this entry.
IntHashMap.EntrygetNextEntry()
Returns the entry after this one.
IntHashMap.EntrygetPreviousEntry()
Returns the entry before this one.
ObjectgetValue()
Returns the value for this entry.
inthashCode()
Returns the hash code for this entry.
ObjectsetValue(Object value)
Sets the value for this entry.

Constructor Detail

Entry

protected Entry()
Default constructor (allows sub-classing).

Method Detail

equals

public boolean equals(Object that)
Indicates if this entry is considered equals to the specified entry (default object equality to ensure symetry)

Parameters: that the object to test for equality.

Returns: true if both entry have equal keys and values. false otherwise.

getKey

public final int getKey()
Returns the key for this entry.

Returns: the entry key.

getNextEntry

public IntHashMap.Entry getNextEntry()
Returns the entry after this one.

Returns: the next entry.

getPreviousEntry

public IntHashMap.Entry getPreviousEntry()
Returns the entry before this one.

Returns: the previous entry.

getValue

public final Object getValue()
Returns the value for this entry.

Returns: the entry value.

hashCode

public int hashCode()
Returns the hash code for this entry.

Returns: this entry hash code.

setValue

public final Object setValue(Object value)
Sets the value for this entry.

Parameters: value the new value.

Returns: the previous value.