org.semanticweb.elk.util.collections.entryset
Interface KeyEntry<T,K>

Type Parameters:
T - the type of the keys for linked entries
K - the type of the key of this entry
All Known Implementing Classes:
StrongKeyEntry, WeakKeyEntry

public interface KeyEntry<T,K>

An interface for entries with key values. An implementation of this interface should redefine Object.equals(Object) and Object.hashCode() methods to compare the keys.

Author:
"Yevgeny Kazakov"

Method Summary
 K getKey()
           
 N getNext()
          Returns the next next element of the entry, or null if there is no next element
 void setNext(N next)
          Setting the input element as the next element of the entry.
 

Method Detail

getKey

K getKey()

setNext

void setNext(N next)
Setting the input element as the next element of the entry.

Parameters:
next - the object that should be set as the next element of the record

getNext

N getNext()
Returns the next next element of the entry, or null if there is no next element

Returns:
the next element of the entry


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.