org.jetbrains.kotlin.util.slicedMap
Interface ReadOnlySlice<K,V>
- All Known Subinterfaces:
- RemovableSlice<K,V>, WritableSlice<K,V>
- All Known Implementing Classes:
- BasicWritableSlice, DelegatingSlice, Slices.BasicRemovableSlice, Slices.SetSlice, Slices.SliceWithOpposite, TrackingSlicedMap.SliceWithStackTrace
public interface ReadOnlySlice<K,V>
makeKey
SlicedMapKey<K,V> makeKey(K key)
computeValue
V computeValue(SlicedMap map,
K key,
V value,
boolean valueNotFound)
makeRawValueVersion
ReadOnlySlice<K,V> makeRawValueVersion()
- Returns:
- a slice that only retrieves the value from the storage and skips any computeValue() calls