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:
Map.Entry<K,V>
- Enclosing class:
KeyComparatorLinkedHashMap<K,V>
LinkedHashMap entry.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) KeyComparatorLinkedHashMap.Entry<K, V> (package private) KeyComparatorLinkedHashMap.Entry<K, V> Fields inherited from class org.glassfish.jersey.internal.util.collection.KeyComparatorHashMap.Entry
hash, key, next, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddBefore(KeyComparatorLinkedHashMap.Entry<K, V> existingEntry) Inserts this entry before the specified existing entry in the list.booleaninthashCode()(package private) voidThis 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) voidThis method is invoked whenever the entry is removed from the table.private voidremove()Removes this entry from the linked list.Methods inherited from class org.glassfish.jersey.internal.util.collection.KeyComparatorHashMap.Entry
getKey, getValue, setValue, toString
-
Field Details
-
before
KeyComparatorLinkedHashMap.Entry<K,V> before -
after
KeyComparatorLinkedHashMap.Entry<K,V> after
-
-
Constructor Details
-
Entry
Entry(int hash, K key, V value, KeyComparatorHashMap.Entry<K, V> next)
-
-
Method Details
-
remove
private void remove()Removes this entry from the linked list. -
addBefore
Inserts this entry before the specified existing entry in the list. -
recordAccess
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:
recordAccessin classKeyComparatorHashMap.Entry<K,V>
-
recordRemoval
Description copied from class:KeyComparatorHashMap.EntryThis method is invoked whenever the entry is removed from the table.- Overrides:
recordRemovalin classKeyComparatorHashMap.Entry<K,V>
-
equals
-
hashCode
public int hashCode()
-