- Type Parameters:
K- keyV- 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 Summary
Modifier and TypeMethodDescriptiongetKey()getValue()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 entry
-
Method Details
-
getValue
V getValue()- Returns:
- the
valueof this entry
-
setValue
sets thevalueof this entry- Parameters:
value- the new value for this entry
-
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
K getKey()- Returns:
- the
keyof this entry
-