Interface ReadOnlyMap<K,V>
-
- All Known Implementing Classes:
MapBackedClassValue
public interface ReadOnlyMap<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description static ReadOnlyMap
EMPTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispose()
Some implementations might hold on to references, which could be just heavy or potentially harmful, such as ClassLoader leaks: allow for proper cleanup.V
get(K key)
The main operation.
-
-
-
Field Detail
-
EMPTY
static final ReadOnlyMap EMPTY
-
-
Method Detail
-
get
V get(K key)
The main operation.- Parameters:
key
-- Returns:
- the corresponding object, or null if there is no association with any entry.
-
dispose
void dispose()
Some implementations might hold on to references, which could be just heavy or potentially harmful, such as ClassLoader leaks: allow for proper cleanup.
-
-