Class KeyComparatorLinkedHashMap.Entry<K,V>
- java.lang.Object
-
- org.glassfish.jersey.internal.util.collection.KeyComparatorHashMap.Entry<K,V>
-
- org.glassfish.jersey.internal.util.collection.KeyComparatorLinkedHashMap.Entry<K,V>
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
- Enclosing class:
- KeyComparatorLinkedHashMap<K,V>
private static class KeyComparatorLinkedHashMap.Entry<K,V> extends KeyComparatorHashMap.Entry<K,V>
LinkedHashMap entry.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) KeyComparatorLinkedHashMap.Entry<K,V>
after
(package private) KeyComparatorLinkedHashMap.Entry<K,V>
before
-
Fields inherited from class org.glassfish.jersey.internal.util.collection.KeyComparatorHashMap.Entry
hash, key, next, value
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addBefore(KeyComparatorLinkedHashMap.Entry<K,V> existingEntry)
Inserts this entry before the specified existing entry in the list.boolean
equals(java.lang.Object obj)
int
hashCode()
(package private) void
recordAccess(KeyComparatorHashMap<K,V> m)
This method is invoked by the superclass whenever the value of a pre-existing entry is read by Map.get or modified by Map.set.(package private) void
recordRemoval(KeyComparatorHashMap<K,V> m)
This method is invoked whenever the entry is removed from the table.private void
remove()
Removes this entry from the linked list.-
Methods inherited from class org.glassfish.jersey.internal.util.collection.KeyComparatorHashMap.Entry
getKey, getValue, setValue, toString
-
-
-
-
Field Detail
-
before
KeyComparatorLinkedHashMap.Entry<K,V> before
-
after
KeyComparatorLinkedHashMap.Entry<K,V> after
-
-
Constructor Detail
-
Entry
Entry(int hash, K key, V value, KeyComparatorHashMap.Entry<K,V> next)
-
-
Method Detail
-
remove
private void remove()
Removes this entry from the linked list.
-
addBefore
private void addBefore(KeyComparatorLinkedHashMap.Entry<K,V> existingEntry)
Inserts this entry before the specified existing entry in the list.
-
recordAccess
void recordAccess(KeyComparatorHashMap<K,V> m)
This method is invoked by the superclass whenever the value of a pre-existing entry is read by Map.get or modified by Map.set. If the enclosing Map is access-ordered, it moves the entry to the end of the list; otherwise, it does nothing.- Overrides:
recordAccess
in classKeyComparatorHashMap.Entry<K,V>
-
recordRemoval
void recordRemoval(KeyComparatorHashMap<K,V> m)
Description copied from class:KeyComparatorHashMap.Entry
This method is invoked whenever the entry is removed from the table.- Overrides:
recordRemoval
in classKeyComparatorHashMap.Entry<K,V>
-
equals
public boolean equals(java.lang.Object obj)
-
-