org.jetbrains.kotlin.util.userDataHolder.keyFMap
Interface KeyFMap

All Known Implementing Classes:
ArrayBackedFMap, OneElementFMap

public interface KeyFMap

An immutable map optimized for storing few Key entries with relatively rare updates To construct a map, start with EMPTY_MAP and call plus(com.intellij.openapi.util.Key, V) and minus(com.intellij.openapi.util.Key)


Field Summary
static KeyFMap EMPTY_MAP
           
 
Method Summary
<V> V
get(com.intellij.openapi.util.Key<V> key)
           
 com.intellij.openapi.util.Key[] getKeys()
           
 boolean isEmpty()
           
 KeyFMap minus(com.intellij.openapi.util.Key<?> key)
           
<V> KeyFMap
plus(com.intellij.openapi.util.Key<V> key, V value)
           
 java.lang.String toString()
           
 

Field Detail

EMPTY_MAP

static final KeyFMap EMPTY_MAP
Method Detail

plus

@NotNull
<V> KeyFMap plus(@NotNull
                         com.intellij.openapi.util.Key<V> key,
                         @NotNull
                         V value)

minus

@NotNull
KeyFMap minus(@NotNull
                      com.intellij.openapi.util.Key<?> key)

get

@Nullable
<V> V get(@NotNull
                   com.intellij.openapi.util.Key<V> key)

getKeys

@NotNull
com.intellij.openapi.util.Key[] getKeys()

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object

isEmpty

boolean isEmpty()