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:
java.lang.Iterable<java.util.Map.Entry<SlicedMapKey<?,?>,?>>, MutableSlicedMap, SlicedMap

public class TrackingSlicedMap
extends SlicedMapImpl


Nested Class Summary
 class TrackingSlicedMap.SliceWithStackTrace<K,V>
           
 
Field Summary
 
Fields inherited from interface org.jetbrains.kotlin.util.slicedMap.SlicedMap
DO_NOTHING
 
Constructor Summary
TrackingSlicedMap(boolean trackWithStackTraces)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.jetbrains.kotlin.util.slicedMap.SlicedMapImpl
create, create, 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

iterator

@NotNull
public java.util.Iterator<java.util.Map.Entry<SlicedMapKey<?,?>,?>> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.util.Map.Entry<SlicedMapKey<?,?>,?>>
Overrides:
iterator 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