Class JsonTransaction.Overlay<T>

java.lang.Object
com.ultikits.ultitools.interfaces.impl.data.json.JsonTransaction.Overlay<T>
Type Parameters:
T - the operator's entity type
Enclosing class:
JsonTransaction

static final class JsonTransaction.Overlay<T> extends Object
One operator's staged writes, keyed by the key the operator's committed entries use. A null value marks a staged delete.
  • Field Details

  • Constructor Details

    • Overlay

      Overlay()
  • Method Details

    • isEmpty

      boolean isEmpty()
    • contains

      boolean contains(Object key)
    • get

      The staged write for key, or null if nothing is staged for it.
    • put

      void put(Object key, T detachedValue)
    • delete

      void delete(Object key)
    • forEach

      void forEach(BiConsumer<Object,T> visitor)
      Visits every staged write in staging order; the value is null for a delete.