Interface Entry<K,V>
- Type Parameters:
K- keyV- value
- All Superinterfaces:
de.linusdev.lutils.collections.Entry<K,,V> de.linusdev.lutils.result.Result
- All Known Implementing Classes:
MapEntryImpl,SAOEntryImpl,SimpleEntry
public interface Entry<K,V>
extends de.linusdev.lutils.collections.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 Summary
Modifier and TypeMethodDescriptiongetKey()getValue()default Kkey()voidInternal
Used by someAbstractDataimplementations to assure sync between theEntryand theAbstractDatavoidoverwriteSetValue(@Nullable BiConsumer<Entry<K, V>, V> setter) Internal
Used by someAbstractDataimplementations to assure sync between theEntryand theAbstractDatavoidsets thevalueof this entrydefault Vvalue()Methods inherited from interface de.linusdev.lutils.collections.Entry
count, get
-
Method Details
-
getValue
-
value
-
setValue
-
overwriteGetValue
Internal
Used by someAbstractDataimplementations to assure sync between theEntryand theAbstractData- Parameters:
getter- the new getter
-
overwriteSetValue
Internal
Used by someAbstractDataimplementations to assure sync between theEntryand theAbstractData- Parameters:
setter- the new setter
-
getKey
-
key
-