org.jetbrains.kotlin.util.slicedMap
Class SlicedMapImpl

java.lang.Object
  extended by org.jetbrains.kotlin.util.slicedMap.SlicedMapImpl
All Implemented Interfaces:
MutableSlicedMap, SlicedMap
Direct Known Subclasses:
TrackingSlicedMap

public class SlicedMapImpl
extends java.lang.Object
implements MutableSlicedMap


Field Summary
 
Fields inherited from interface org.jetbrains.kotlin.util.slicedMap.SlicedMap
DO_NOTHING
 
Constructor Summary
SlicedMapImpl()
           
 
Method Summary
 void clear()
           
static SlicedMapImpl create()
           
 void forEach(kotlin.jvm.functions.Function3<WritableSlice,java.lang.Object,java.lang.Object,java.lang.Void> f)
           
<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)
           
<K,V> void
put(WritableSlice<K,V> slice, K key, V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlicedMapImpl

public SlicedMapImpl()
Method Detail

create

public static SlicedMapImpl create()

put

public <K,V> void put(WritableSlice<K,V> slice,
                      K key,
                      V value)
Specified by:
put in interface MutableSlicedMap

clear

public void clear()
Specified by:
clear in interface MutableSlicedMap

get

public <K,V> V get(ReadOnlySlice<K,V> slice,
                   K key)
Specified by:
get in interface SlicedMap

getKeys

public <K,V> java.util.Collection<K> getKeys(WritableSlice<K,V> slice)
Specified by:
getKeys in interface SlicedMap

forEach

public void forEach(@NotNull
                    kotlin.jvm.functions.Function3<WritableSlice,java.lang.Object,java.lang.Object,java.lang.Void> f)
Specified by:
forEach in interface SlicedMap

getSliceContents

@NotNull
public <K,V> com.google.common.collect.ImmutableMap<K,V> getSliceContents(@NotNull
                                                                                  ReadOnlySlice<K,V> slice)
Specified by:
getSliceContents in interface MutableSlicedMap