com.google.common.collect
Interface CustomConcurrentHashMap.Internals<K,V,E>

Enclosing class:
CustomConcurrentHashMap

public static interface CustomConcurrentHashMap.Internals<K,V,E>

Provides access to a map's internal entries.


Method Summary
 E getEntry(K key)
          Returns the internal entry corresponding to the given key from the map.
 boolean removeEntry(E entry)
          Removes the given entry from the map.
 boolean removeEntry(E entry, V value)
          Removes the given entry from the map if the value of the entry in the map matches the given value.
 

Method Detail

getEntry

E getEntry(K key)
Returns the internal entry corresponding to the given key from the map.

Parameters:
key - to retrieve entry for
Throws:
java.lang.NullPointerException - if key is null

removeEntry

boolean removeEntry(E entry,
                    V value)
Removes the given entry from the map if the value of the entry in the map matches the given value.

Parameters:
entry - to remove
value - entry must have for the removal to succeed
Throws:
java.lang.NullPointerException - if entry is null

removeEntry

boolean removeEntry(E entry)
Removes the given entry from the map.

Parameters:
entry - to remove
Throws:
java.lang.NullPointerException - if entry is null


Copyright © 2007-2009 Google. All Rights Reserved.