|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.parameters.impl.MapContextVariablesImpl
public class MapContextVariablesImpl
| Constructor Summary | |
|---|---|
MapContextVariablesImpl()
Creates empty variables provider. |
|
MapContextVariablesImpl(java.util.Map<java.lang.String,java.lang.Object> variables)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.String name)
|
java.util.Map<java.lang.String,java.lang.Object> |
getAll()
|
java.lang.Object |
put(java.lang.String name,
java.lang.Object value)
Adds a variable to the backing map |
void |
putAll(java.util.Map<java.lang.String,java.lang.Object> fromMap)
Adds multiple variables to the backing map |
java.lang.Object |
remove(java.lang.String name)
Removes variable with the name from the backing map |
int |
size()
Returns the number of variables in this variables provider. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapContextVariablesImpl()
public MapContextVariablesImpl(java.util.Map<java.lang.String,java.lang.Object> variables)
variables - variables map to use as initializer. A copy will be created as backing storage.| Method Detail |
|---|
@Nullable
public java.lang.Object get(@NotNull
java.lang.String name)
get in interface ContextVariablesget in interface MapContextVariablesname - the name of the variable
public java.lang.Object remove(@NotNull
java.lang.String name)
MapContextVariables
remove in interface MapContextVariablesname - name of the variable to be removed
@Nullable
public java.lang.Object put(@NotNull
java.lang.String name,
@NotNull
java.lang.Object value)
MapContextVariables
put in interface MapContextVariablesname - name of the variable to addvalue - value of the variable
public void putAll(java.util.Map<java.lang.String,java.lang.Object> fromMap)
MapContextVariables
putAll in interface MapContextVariablesfromMap - the map to add variables formpublic int size()
ContextVariables
size in interface ContextVariablessize in interface MapContextVariables@NotNull public java.util.Map<java.lang.String,java.lang.Object> getAll()
getAll in interface ContextVariablesgetAll in interface MapContextVariablespublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||