public class TrackingSlicedMap extends java.lang.Object implements MutableSlicedMap
Modifier and Type | Class and Description |
---|---|
class |
TrackingSlicedMap.SliceWithStackTrace<K,V> |
DO_NOTHING
Constructor and Description |
---|
TrackingSlicedMap(MutableSlicedMap delegate) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
<K,V> V |
get(ReadOnlySlice<K,V> slice,
K key) |
<K,V> java.util.Collection<K> |
getKeys(WritableSlice<K,V> slice) |
<K,V> com.google.common.collect.ImmutableMap<K,V> |
getSliceContents(ReadOnlySlice<K,V> slice) |
java.util.Iterator<java.util.Map.Entry<SlicedMapKey<?,?>,?>> |
iterator() |
<K,V> void |
put(WritableSlice<K,V> slice,
K key,
V value) |
<K,V> V |
remove(RemovableSlice<K,V> slice,
K key) |
public TrackingSlicedMap(@NotNull MutableSlicedMap delegate)
public <K,V> V get(ReadOnlySlice<K,V> slice, K key)
public <K,V> java.util.Collection<K> getKeys(WritableSlice<K,V> slice)
@NotNull public java.util.Iterator<java.util.Map.Entry<SlicedMapKey<?,?>,?>> iterator()
iterator
in interface java.lang.Iterable<java.util.Map.Entry<SlicedMapKey<?,?>,?>>
public <K,V> void put(WritableSlice<K,V> slice, K key, V value)
put
in interface MutableSlicedMap
public <K,V> V remove(RemovableSlice<K,V> slice, K key)
remove
in interface MutableSlicedMap
public void clear()
clear
in interface MutableSlicedMap
@NotNull @TestOnly public <K,V> com.google.common.collect.ImmutableMap<K,V> getSliceContents(@NotNull ReadOnlySlice<K,V> slice)
getSliceContents
in interface MutableSlicedMap