tango.util.collection.impl.LLPair

class LLPair(K, T) : LLCell!(T) #
LLPairs are LLCells with keys, and operations that deal with them. As with LLCells, the are pure implementation tools.

Author:

Doug Lea @version 0.93

For an introduction to this package see Overview .

this(K k, T v, LLPair n) [public] #
Make a cell with given key, elment, and next link
this(K k, T v) [public] #
Make a pair with given key and element, and null next link
this() [public] #
Make a pair with null key, elment, and next link
K key() [public, final] #
return the key
void key(K k) [public, final] #
set the key
int keyHash() [public, final] #
set the key
LLPair findKey(K key) [public, final] #
return a cell with key() key or null if no such
LLPair find(K key, T element) [public, final] #
return a cell holding the indicated pair or null if no such
int indexKey(K key) [public, final] #
Return the number of cells traversed to find a cell with key() key, or -1 if not present
int index(K key, T element) [public, final] #
Return the number of cells traversed to find a cell with indicated pair or -1 if not present
int countKey(K key) [public, final] #
Return the number of cells with key() key.
int count(K key, T element) [public, final] #
Return the number of cells with indicated pair