org.jetbrains.kotlin.util.userDataHolder.keyFMap
Class OneElementFMap<V>

java.lang.Object
  extended by org.jetbrains.kotlin.util.userDataHolder.keyFMap.OneElementFMap<V>
All Implemented Interfaces:
KeyFMap

public class OneElementFMap<V>
extends java.lang.Object
implements KeyFMap


Field Summary
 
Fields inherited from interface org.jetbrains.kotlin.util.userDataHolder.keyFMap.KeyFMap
EMPTY_MAP
 
Constructor Summary
OneElementFMap(com.intellij.openapi.util.Key key, V value)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
<V> V
get(com.intellij.openapi.util.Key<V> key)
           
 com.intellij.openapi.util.Key getKey()
           
 com.intellij.openapi.util.Key[] getKeys()
           
 V getValue()
           
 int hashCode()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OneElementFMap

public OneElementFMap(@NotNull
                      com.intellij.openapi.util.Key key,
                      @NotNull
                      V value)
Method Detail

plus

@NotNull
public <V> KeyFMap plus(@NotNull
                                com.intellij.openapi.util.Key<V> key,
                                @NotNull
                                V value)
Specified by:
plus in interface KeyFMap

minus

@NotNull
public KeyFMap minus(@NotNull
                             com.intellij.openapi.util.Key<?> key)
Specified by:
minus in interface KeyFMap

get

public <V> V get(@NotNull
                 com.intellij.openapi.util.Key<V> key)
Specified by:
get in interface KeyFMap

getKeys

@NotNull
public com.intellij.openapi.util.Key[] getKeys()
Specified by:
getKeys in interface KeyFMap

toString

public java.lang.String toString()
Specified by:
toString in interface KeyFMap
Overrides:
toString in class java.lang.Object

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface KeyFMap

getKey

public com.intellij.openapi.util.Key getKey()

getValue

public V getValue()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object