public static interface CanonicalMap.MutableCanonicalMap extends CanonicalMap, PathMap.MutablePathMap<String>, PropertiesAccessorMixin.PropertiesMutatorMixin, Map<String,String>
CanonicalMap.CanonicalMapBuilder, CanonicalMap.MutableCanonicalMap
PropertiesAccessorMixin.PropertiesBuilderMixin<T>, PropertiesAccessorMixin.PropertiesMixin, PropertiesAccessorMixin.PropertiesMutatorMixin
PathMap.MutablePathMap<T>, PathMap.PathMapBuilder<T>
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.mixin.TypeAccessor.TypeMutator<T>, org.refcodes.mixin.TypeAccessor.TypeProperty<T>
Dictionary.MutableDictionary.DictionaryBuilder<K,V,B extends Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
Dictionary.MutableDictionary<K,V>
Keys.MutableKeys<K,V>, Keys.MutableValues<K,V>
DEFAULT_COMMENT
Modifier and Type | Method and Description |
---|---|
default boolean |
containsValue(Object value)
This method is defined for the sake of
Map conformity. |
default String |
delete(String aKey)
Removes an element identified by the given key.
|
default String |
put(Relation<String,String> aRelation)
Adds the given element related to the given key.
|
default void |
putAll(CanonicalMap aProperties)
This method inserts all elements (key/value-pairs) found in the
provided
CanonicalMap instances of interoperability reasons. |
default void |
putAll(Map<? extends String,? extends String> aProperties) |
default void |
putAll(Properties aProperties)
This method inserts all elements (key/value-pairs) found in the
provided
Properties instances of interoperability
reasons. |
default CanonicalMap.MutableCanonicalMap |
retrieve(String aFromPath,
String aToPath)
|
CanonicalMap.MutableCanonicalMap |
retrieveFrom(String aFromPath)
|
CanonicalMap.MutableCanonicalMap |
retrieveTo(String aToPath)
|
default Map<String,String> |
toDump(Map<String,String> aDump) |
default String |
toSourceCode(String aClassName,
String aPackage)
Beta, don't know whether to keep this or not: Creates a class (a
String text to be copy'n'pasted) with getters and setters for
the herein contained paths and their values. |
toType, toType
containsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
insert, insert, insertFrom, insertTo, put, putArray, putArray, removeAll
directories, directories, entries, entries, fromExternalKey, getArray, getArray, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toRootPath
isEmpty, size
put
clear, compute, computeIfAbsent, computeIfPresent, containsKey, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
put, put, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort
default String put(Relation<String,String> aRelation)
Dictionary.MutableDictionary
put
in interface Dictionary.MutableDictionary<String,String>
put
in interface PathMap.MutablePathMap<String>
aRelation
- the a relationdefault String delete(String aKey)
Keys.MutableKeys
delete
in interface Keys.MutableKeys<String,String>
delete
in interface PathMap.MutablePathMap<String>
aKey
- The key which's element is to be removed.default boolean containsValue(Object value)
Keys
Map
conformity.
Tests whether the provided value has a key assigned.containsValue
in interface CanonicalMap
containsValue
in interface Keys<String,String>
containsValue
in interface Map<String,String>
value
- The value to test if a key references this value.default void putAll(CanonicalMap aProperties)
CanonicalMap
instances of interoperability reasons.aProperties
- A CanonicalMap
containing the key/value
pairs to be inserted.default void putAll(Properties aProperties)
Properties
instances of interoperability
reasons.aProperties
- A Properties
containing the
key/value-pairs to be inserted.CanonicalMap.MutableCanonicalMap retrieveFrom(String aFromPath)
PathMap
PathMap
from the elements of this PathMap
found below the "from-path". The sub-paths will be the root paths for the
new PathMap
.
Given we have a value for path "/dog/cat" in the PathMap
and we
call PathMap.retrieveFrom(String)
with "/dog", then the resulting
PathMap
will contain the path "/cat" for that value.retrieveFrom
in interface PathMap<String>
retrieveFrom
in interface PathMap.MutablePathMap<String>
aFromPath
- The path from where to start extracting the paths.PathMap
with the elements below the provided path
which are root elements in the new PathMap
.CanonicalMap.MutableCanonicalMap retrieveTo(String aToPath)
PathMap
PathMap
from this PathMap
's elements with
the paths relocated to the provided "to-path".
Given we have a value for path "/dog/cat" in the PathMap
and we
call PathMap.retrieveTo(String)
with "/animals", then the resulting
PathMap
will contain the path "/animals/dog/cat" for that value.retrieveTo
in interface PathMap<String>
retrieveTo
in interface PathMap.MutablePathMap<String>
aToPath
- The path where to relocate the paths of this
PathMap
to.PathMap
with the elements from the provided
PathMap
with accordingly relocated paths.default CanonicalMap.MutableCanonicalMap retrieve(String aFromPath, String aToPath)
PathMap
PathMap
from the elements of this PathMap
found below the "from-path". The sub-paths will be relocated to the
provided "to-path".retrieve
in interface PathMap<String>
retrieve
in interface PathMap.MutablePathMap<String>
aFromPath
- The path from where to start extracting the paths.aToPath
- The path where to relocate the extracted paths to.PathMap
with the elements below the provided path
"from-path" relocated to the given "to-path".default String toSourceCode(String aClassName, String aPackage)
String
text to be copy'n'pasted) with getters and setters for
the herein contained paths and their values.aClassName
- The class name for the class to be generated.aPackage
- The package to which the class is to belong.Copyright © 2017. All rights reserved.