public class SlicedMapImpl extends java.lang.Object implements MutableSlicedMap
DO_NOTHING
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static SlicedMapImpl |
create() |
static SlicedMapImpl |
create(java.util.Map<SlicedMapKey<?,?>,java.lang.Object> map) |
static SlicedMapImpl |
create(MapSupplier mapSupplier) |
<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 static SlicedMapImpl create()
public static SlicedMapImpl create(java.util.Map<SlicedMapKey<?,?>,java.lang.Object> map)
public static SlicedMapImpl create(MapSupplier mapSupplier)
public <K,V> void put(WritableSlice<K,V> slice, K key, V value)
put
in interface MutableSlicedMap
public void clear()
clear
in interface MutableSlicedMap
public <K,V> V get(ReadOnlySlice<K,V> slice, K key)
public <K,V> java.util.Collection<K> getKeys(WritableSlice<K,V> slice)
public <K,V> V remove(RemovableSlice<K,V> slice, K key)
remove
in interface MutableSlicedMap
public java.util.Iterator<java.util.Map.Entry<SlicedMapKey<?,?>,?>> iterator()
iterator
in interface java.lang.Iterable<java.util.Map.Entry<SlicedMapKey<?,?>,?>>
@NotNull public <K,V> com.google.common.collect.ImmutableMap<K,V> getSliceContents(@NotNull ReadOnlySlice<K,V> slice)
getSliceContents
in interface MutableSlicedMap