Class SAOEntryImpl<O>

java.lang.Object
de.linusdev.data.so.SAOEntryImpl<O>
All Implemented Interfaces:
Entry<String,O>, de.linusdev.lutils.collections.Entry<String,O>, de.linusdev.lutils.result.Result
Direct Known Subclasses:
MapEntryImpl

public class SAOEntryImpl<O> extends Object implements Entry<String,O>
  • Constructor Details

    • SAOEntryImpl

      public SAOEntryImpl(@NotNull @NotNull String key, @Nullable O value)
    • SAOEntryImpl

      public SAOEntryImpl(@NotNull @NotNull String key)
  • Method Details

    • getValue

      @Nullable public O getValue()
      Specified by:
      getValue in interface Entry<String,O>
      Specified by:
      getValue in interface de.linusdev.lutils.collections.Entry<String,O>
      Returns:
      the value of this entry
    • setValue

      public void setValue(@Nullable O value)
      Description copied from interface: Entry
      sets the value of this entry
      Specified by:
      setValue in interface Entry<String,O>
      Parameters:
      value - the new value for this entry
    • overwriteGetValue

      public void overwriteGetValue(@Nullable @Nullable Function<Entry<String,O>,O> getter)
      Description copied from interface: Entry
      Internal
      Used by some AbstractData implementations to assure sync between the Entry and the AbstractData
      Specified by:
      overwriteGetValue in interface Entry<String,O>
      Parameters:
      getter - the new getter
    • overwriteSetValue

      public void overwriteSetValue(@Nullable @Nullable BiConsumer<Entry<String,O>,O> setter)
      Description copied from interface: Entry
      Internal
      Used by some AbstractData implementations to assure sync between the Entry and the AbstractData
      Specified by:
      overwriteSetValue in interface Entry<String,O>
      Parameters:
      setter - the new setter
    • getKey

      @NotNull public @NotNull String getKey()
      Specified by:
      getKey in interface Entry<String,O>
      Specified by:
      getKey in interface de.linusdev.lutils.collections.Entry<String,O>
      Returns:
      the key of this entry
    • equalsKey

      public boolean equalsKey(String key)