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 java.lang.Object
A triple that holds the key, the previous value and the new value, used to notify entry updates:
 (key, oldValue, newValue)
 
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected Entry​(K key, V oldValue, V newValue)  
  • Method Summary

    Modifier and Type Method Description
    K getKey()  
    V getNewValue()  
    V getOldValue()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Entry

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

    • getKey

      public K getKey()
      Returns:
      the key
    • getOldValue

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

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object