org.jetbrains.kotlin.util.slicedMap
Class TrackingSlicedMap

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

public class TrackingSlicedMap
extends SlicedMapImpl


Field Summary
 
Fields inherited from interface org.jetbrains.kotlin.util.slicedMap.SlicedMap
DO_NOTHING
 
Constructor Summary
TrackingSlicedMap(boolean trackWithStackTraces)
           
 
Method Summary
 void clear()
           
 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)
           
<K,V> V
remove(RemovableSlice<K,V> slice, K key)
           
 
Methods inherited from class org.jetbrains.kotlin.util.slicedMap.SlicedMapImpl
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackingSlicedMap

public TrackingSlicedMap(boolean trackWithStackTraces)
Method Detail

get

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

getKeys

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

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
Overrides:
forEach in class SlicedMapImpl

put

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

remove

public <K,V> V remove(RemovableSlice<K,V> slice,
                      K key)
Specified by:
remove in interface MutableSlicedMap
Overrides:
remove in class SlicedMapImpl

clear

public void clear()
Specified by:
clear in interface MutableSlicedMap
Overrides:
clear in class SlicedMapImpl

getSliceContents

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