Class OortMap.Entry<K,V>

java.lang.Object
org.cometd.oort.OortMap.Entry<K,V>
Type Parameters:
K - the key type
V - the value type
Enclosing class:
OortMap<K,V>

public static class OortMap.Entry<K,V> extends Object
A triple that holds the key, the previous value and the new value, used to notify entry updates:
 (key, oldValue, newValue)
 
  • Constructor Details Link icon

    • Entry Link icon

      protected Entry(K key, V oldValue, V newValue)
  • Method Details Link icon

    • getKey Link icon

      public K getKey()
      Returns:
      the key
    • getOldValue Link icon

      public V getOldValue()
      Returns:
      the value before the change, may be null
    • getNewValue Link icon

      public V getNewValue()
      Returns:
      the value after the change, may be null
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object