Interface PairedDataMemory<K>
- Type Parameters:
K- the type of keys maintained by this memory storage.
- All Superinterfaces:
DataMemory<K>
- All Known Implementing Classes:
MapPairedDataMemory,StringMapPairedDataMemory
An extension of
DataMemory that supports advanced retrieval using MemoryEntry.
This interface introduces the ability to fetch "detailed" results, returning both the
configuration key and its associated value wrapped in a Pair.- Since:
- 0.1
- Author:
- a8kj7sea
-
Method Summary
Modifier and TypeMethodDescriptionfetchDetailed(MemoryEntry<T> entry) Fetches a detailed result for a givenMemoryEntry.Methods inherited from interface me.a8kj.config.template.memory.DataMemory
clear, contains, get, get, getBoolean, getDouble, getInt, getKeys, getOptional, getProcessor, getString, getString, getStringList, getStringList, set, transform
-
Method Details
-
fetchDetailed
Fetches a detailed result for a givenMemoryEntry. This method retrieves the value using the entry's internal logic and pairs it with the original key for comprehensive data handling.- Type Parameters:
T- the expected type of the value.- Parameters:
entry- the pre-defined memory entry containing the key and type strategy.- Returns:
- a
Paircontaining the resolved key and the fetched value. - Since:
- 0.1
-