Package spoon.support.util
Class ImmutableMapImpl
java.lang.Object
spoon.support.util.ImmutableMapImpl
- All Implemented Interfaces:
ImmutableMap
Internal class only, not in the public API.
Spoon implementation of
ImmutableMap-
Field Details
-
parent
-
map
-
-
Constructor Details
-
ImmutableMapImpl
-
ImmutableMapImpl
-
ImmutableMapImpl
public ImmutableMapImpl()
-
-
Method Details
-
checkpoint
- Specified by:
checkpointin interfaceImmutableMap- Returns:
- a new instance of
ImmutableMap, which inherits all values from thisImmutableMapAny call ofImmutableMap.putValue(String, Object)is remembered in local Map of parameters. At the end of process theImmutableMap.getModifiedValues()can be used to return all the parameters which were changed after localImmutableMapwas created
-
hasValue
- Specified by:
hasValuein interfaceImmutableMap- Parameters:
parameterName- to be checked parameter name- Returns:
- true if there is defined some value for the parameter. null can be a value too
-
getValue
- Specified by:
getValuein interfaceImmutableMap- Parameters:
parameterName- the name of the parameter- Returns:
- a value of the parameter under the name `parameterNamer
-
putValue
- Specified by:
putValuein interfaceImmutableMap- Parameters:
parameterName- to be set parameter namevalue- the new value- Returns:
- copies this
ImmutableMap, sets the new value there and returns that copy
-
toString
-
asMap
- Specified by:
asMapin interfaceImmutableMap- Returns:
- underlying unmodifiable Map<String, Object>
-
getModifiedValues
- Specified by:
getModifiedValuesin interfaceImmutableMap- Returns:
- the modified parameters since last call to
ImmutableMap.checkpoint()
-
equals
-