public Object setValue(Object value)
            {
                HashEntry current = currentEntry();

                if (current == null)
                {
                    throw new java.lang.IllegalStateException(AbstractHashedMap.SETVALUE_INVALID);
                }
                return(current.setValue(value));
            }
 /**
  * Updates an existing key-value mapping.
  * <p>
  * This implementation moves the updated entry to the top of the list
  * using {@link #moveToMRU(AbstractLinkedMap.LinkEntry)}.
  *
  * @param entry  the entry to update
  * @param newValue  the new value to store
  */
 protected internal override void updateEntry(HashEntry entry, Object newValue)
 {
     moveToMRU((LinkEntry)entry);  // handles modCount
     entry.setValue(newValue);
 }
 /**
  * Updates an existing key-value mapping.
  * <p>
  * This implementation moves the updated entry to the top of the list
  * using {@link #moveToMRU(AbstractLinkedMap.LinkEntry)}.
  *
  * @param entry  the entry to update
  * @param newValue  the new value to store
  */
 protected internal override void updateEntry(HashEntry entry, Object newValue)
 {
     moveToMRU((LinkEntry)entry);  // handles modCount
     entry.setValue(newValue);
 }