Class IncrementalMap.Change<K,V,M>

java.lang.Object
eu.bandm.tools.util.java.IncrementalMap.Change<K,V,M>
Type Parameters:
K - the type of map keys
V - the type of map values
M - the type of maps
Enclosing class:
IncrementalMap<K,V>

public static class IncrementalMap.Change<K,V,M> extends Object
A report on an incremental map update.
  • Method Details

    • getKey

      public K getKey()
      Returns the key whose associated value has been updated.
      Returns:
      the key whose associated value has been updated
    • getOldValue

      public V getOldValue()
      Returns the old value that has been replaced by a new one.
      Returns:
      the old value that has been replaced by a new one, or null if there had been none
    • getNewValue

      public V getNewValue()
      Returns the new value that has replaced an old one.
      Returns:
      the new value that has replaced an old one, or null if the key has been removed
    • getNewMap

      public M getNewMap()
      Returns the new map after the update.
      Returns:
      the new map after the update