Enum ConcurrentLinkedHashMap.DiscardingListener

java.lang.Object
java.lang.Enum<ConcurrentLinkedHashMap.DiscardingListener>
com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.DiscardingListener
All Implemented Interfaces:
EvictionListener<Object,Object>, Serializable, Comparable<ConcurrentLinkedHashMap.DiscardingListener>
Enclosing class:
ConcurrentLinkedHashMap<K,V>

static enum ConcurrentLinkedHashMap.DiscardingListener extends Enum<ConcurrentLinkedHashMap.DiscardingListener> implements EvictionListener<Object,Object>
A listener that ignores all notifications.
  • Enum Constant Details

  • Constructor Details

    • DiscardingListener

      private DiscardingListener()
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ConcurrentLinkedHashMap.DiscardingListener valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • onEviction

      public void onEviction(Object key, Object value)
      Description copied from interface: EvictionListener
      A call-back notification that the entry was evicted.
      Specified by:
      onEviction in interface EvictionListener<Object,Object>
      Parameters:
      key - the entry's key
      value - the entry's value