org.apache.commons.collections.map

Class AbstractLinkedMap.LinkEntry

Enclosing Class:
AbstractLinkedMap
Implemented Interfaces:
Map.Entry, KeyValue

protected static class AbstractLinkedMap.LinkEntry
extends AbstractHashedMap.HashEntry

LinkEntry that stores the data.

If you subclass AbstractLinkedMap but not LinkEntry then you will not be able to access the protected fields. The entryXxx() methods on AbstractLinkedMap exist to provide the necessary access.

Field Summary

protected AbstractLinkedMap.LinkEntry
after
The entry after this one in the order
protected AbstractLinkedMap.LinkEntry
before
The entry before this one in the order

Fields inherited from class org.apache.commons.collections.map.AbstractHashedMap.HashEntry

hashCode, key, next, value

Constructor Summary

LinkEntry(AbstractHashedMap.HashEntry next, int hashCode, Object key, Object value)
Constructs a new entry.

Method Summary

Methods inherited from class org.apache.commons.collections.map.AbstractHashedMap.HashEntry

equals, getKey, getValue, hashCode, setValue, toString

Field Details

after

protected AbstractLinkedMap.LinkEntry after
The entry after this one in the order

before

protected AbstractLinkedMap.LinkEntry before
The entry before this one in the order

Constructor Details

LinkEntry

protected LinkEntry(AbstractHashedMap.HashEntry next,
                    int hashCode,
                    Object key,
                    Object value)
Constructs a new entry.
Parameters:
next - the next entry in the hash bucket sequence
hashCode - the hash code
key - the key
value - the value

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.