Interface Entry<K,V>

Type Parameters:
K - key
V - value
All Known Implementing Classes:
MapEntryImpl, SAOEntryImpl, SimpleEntry

public interface Entry<K,V>
A Entry represents a key-value pair in a AbstractData. Every Entry may only be contained in one AbstractData at a time (This is especially true for SODataMapImpl).
  • Method Details

    • getValue

      V getValue()
      Returns:
      the value of this entry
    • setValue

      void setValue(V value)
      sets the value of this entry
      Parameters:
      value - the new value for this entry
    • overwriteGetValue

      void overwriteGetValue(@Nullable @Nullable Function<Entry<K,V>,V> getter)
      Internal
      Used by some AbstractData implementations to assure sync between the Entry and the AbstractData
      Parameters:
      getter - the new getter
    • overwriteSetValue

      void overwriteSetValue(@Nullable @Nullable BiConsumer<Entry<K,V>,V> setter)
      Internal
      Used by some AbstractData implementations to assure sync between the Entry and the AbstractData
      Parameters:
      setter - the new setter
    • getKey

      K getKey()
      Returns:
      the key of this entry