|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pentaho.reporting.libraries.base.util.LinkedMap.MapEntry
protected static final class LinkedMap.MapEntry
A cache map entry class holding both the key and value and acting as member of a linked list.
| Field Summary | |
|---|---|
protected LinkedMap.MapEntry |
collisionNext
The link to the next entry in the bucket that has the same hashkey. |
protected int |
hashKey
The precomputed hashkey of the key. |
protected java.lang.Object |
key
The key object, which is never null and which never changes. |
protected LinkedMap.MapEntry |
next
The link to the next entry in the list. |
protected LinkedMap.MapEntry |
previous
The link to the previous entry in the list. |
protected java.lang.Object |
value
The current value object (can be null). |
| Constructor Summary | |
|---|---|
protected |
LinkedMap.MapEntry(java.lang.Object key,
int hashKey,
java.lang.Object value)
Creates a new map-entry for the given key and value. |
| Method Summary | |
|---|---|
LinkedMap.MapEntry |
getCollisionNext()
Returns the next map-entry in the bucket. |
LinkedMap.MapEntry |
getNext()
Returns the next entry in the list or null if this is the last entry. |
LinkedMap.MapEntry |
getPrevious()
Returns the previous entry in the list or null if this is the first entry. |
java.lang.Object |
getValue()
Returns the current value. |
void |
setCollisionNext(LinkedMap.MapEntry collisionNext)
Defines the next map-entry in the bucket. |
void |
setNext(LinkedMap.MapEntry next)
Redefines the next entry in the list or null if this is the last entry. |
void |
setPrevious(LinkedMap.MapEntry previous)
Redefines the previous entry in the list or null if this is the first entry. |
void |
setValue(java.lang.Object value)
Redefines the current value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final int hashKey
protected final java.lang.Object key
protected java.lang.Object value
protected LinkedMap.MapEntry previous
protected LinkedMap.MapEntry next
protected LinkedMap.MapEntry collisionNext
| Constructor Detail |
|---|
protected LinkedMap.MapEntry(java.lang.Object key,
int hashKey,
java.lang.Object value)
key - the key, never null.hashKey - the precomputed hashkey for the key.value - the value, never null.| Method Detail |
|---|
public LinkedMap.MapEntry getPrevious()
public void setPrevious(LinkedMap.MapEntry previous)
previous - the previous entry.public LinkedMap.MapEntry getNext()
public void setNext(LinkedMap.MapEntry next)
next - the next entry.public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - the value, never null.public LinkedMap.MapEntry getCollisionNext()
public void setCollisionNext(LinkedMap.MapEntry collisionNext)
collisionNext - the next entry.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||