org.jetbrains.jet.util.slicedmap
Class TrackingSlicedMap

java.lang.Object
  extended by org.jetbrains.jet.util.slicedmap.TrackingSlicedMap
All Implemented Interfaces:
java.lang.Iterable<java.util.Map.Entry<SlicedMapKey<?,?>,?>>, MutableSlicedMap, SlicedMap

public class TrackingSlicedMap
extends java.lang.Object
implements MutableSlicedMap


Nested Class Summary
 class TrackingSlicedMap.SliceWithStackTrace<K,V>
           
 
Field Summary
 
Fields inherited from interface org.jetbrains.jet.util.slicedmap.SlicedMap
DO_NOTHING
 
Constructor Summary
TrackingSlicedMap(MutableSlicedMap delegate)
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackingSlicedMap

public TrackingSlicedMap(@NotNull
                         MutableSlicedMap delegate)
Method Detail

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

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<?,?>,?>>

put

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

remove

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

clear

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

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