Klasse GroovyInternalStore.EphemeralKeyValueStore
java.lang.Object
de.uplanet.lucy.server.store.scripting.groovy.GroovyInternalStore.EphemeralKeyValueStore
- Umschließende Klasse:
GroovyInternalStore
Access the internal ephemeral key-value store.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanCheck if the store contains a mapping for the given key.booleancontainsKey(String p_strKey) Check if the store contains a mapping for the given key.booleanMethod for supporting the membership (in) operator.Map the specified key to the given value.Remove the specified mapping.
-
Methodendetails
-
containsKey
Check if the store contains a mapping for the given key.Note that there is no guaranty that subsequent calls
put(String, Object)orremove(String)will retrieve the associated value.- Parameter:
p_strKey- The key.- Gibt zurück:
trueif the store contains a mapping for the given key, orfalseotherwise.- Löst aus:
IllegalArgumentException- Ifnullis passed as key.
-
contains
Check if the store contains a mapping for the given key.Note that there is no guaranty that subsequent calls
put(String, Object)orremove(String)will retrieve the associated value.This method is basically the same as
containsKey(String)but also allows passingnullvalues and other types thanStrings as keys. In the latter case values of typeCharSequencewill be converted toStringbefore the actual lookup.- Parameter:
p_key- The key.- Gibt zurück:
trueif the store contains a mapping for the given key, orfalseotherwise.
-
put
Map the specified key to the given value.- Parameter:
p_strKey- The key (must not benull).p_value- The value (must not benull).- Gibt zurück:
- The previous value associated with the key, or
nullif there was no mapping for the key.
-
remove
Remove the specified mapping.- Parameter:
p_strKey- The key (must not benull).- Gibt zurück:
- The value associated with the key, or
nullif there is no mapping for the key.
-
isCase
Method for supporting the membership (in) operator.- Parameter:
p_value- The switch value.- Gibt zurück:
trueif the switch value is deemed to be equal to the case value, orfalseotherwise.
-