T - the type of the keys for linked entriesK - the type of the key of this entrypublic abstract class StrongKeyEntry<T,K> extends Object implements KeyEntry<T,K>
| Modifier and Type | Field and Description |
|---|---|
protected int |
hash
The value used as a hash code of this entry
|
protected K |
key |
| Constructor and Description |
|---|
StrongKeyEntry(K key) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
computeHashCode()
Compute the value which will be used as a final hash code for this
object.
|
abstract boolean |
equals(Object object) |
K |
getKey() |
KeyEntry<T,? extends T> |
getNext()
Returns the next next element of the entry, or null if there is no next
element
|
int |
hashCode() |
void |
setNext(KeyEntry<T,? extends T> next)
Setting the input element as the next element of the entry.
|
protected final K key
protected final int hash
public StrongKeyEntry(K key)
public void setNext(KeyEntry<T,? extends T> next)
next - the object that should be set as the next element of the
recordpublic KeyEntry<T,? extends T> getNext()
public abstract int computeHashCode()
equals(Object) method usual.Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.