Package org.refcodes.structure
Interface PathMap.PathMapBuilder<T>
-
- Type Parameters:
T
- The type of the terminating elements.
- All Superinterfaces:
Clearable
,Containable
,org.refcodes.mixin.DelimiterAccessor
,Dictionary<java.lang.String,T>
,Dictionary.MutableDictionary<java.lang.String,T>
,Dictionary.MutableDictionary.DictionaryBuilder<java.lang.String,T,PathMap.PathMapBuilder<T>>
,org.refcodes.mixin.Dumpable
,Keys<K,V>
,Keys.MutableKeys<K,V>
,Keys.MutableValues<K,V>
,java.util.Map<java.lang.String,T>
,PathMap<T>
,PathMap.MutablePathMap<T>
,org.refcodes.mixin.TypeAccessor<T>
- All Known Subinterfaces:
CanonicalMap.CanonicalMapBuilder
- All Known Implementing Classes:
CanonicalMapBuilderImpl
,PathMapBuilderImpl
public static interface PathMap.PathMapBuilder<T> extends PathMap.MutablePathMap<T>, Dictionary.MutableDictionary.DictionaryBuilder<java.lang.String,T,PathMap.PathMapBuilder<T>>
Extends thePathMap
with mutator functionality.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.DelimiterAccessor
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary
Dictionary.MutableDictionary<K,V>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary.MutableDictionary
Dictionary.MutableDictionary.DictionaryBuilder<K,V,B extends Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
-
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PathMap
PathMap.MutablePathMap<T>, PathMap.PathMapBuilder<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default PathMap.PathMapBuilder<T>
withInsert(java.lang.Object aObj)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.insert(Object)
method.default PathMap.PathMapBuilder<T>
withInsert(java.lang.String aToPath, java.lang.Object aFrom, java.lang.String aFromPath)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.insert(String, Object, String)
method.default PathMap.PathMapBuilder<T>
withInsert(java.lang.String aToPath, PathMap<T> aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default PathMap.PathMapBuilder<T>
withInsert(PathMap<T> aFrom)
Method to semantically emphasize that we support our own types.default PathMap.PathMapBuilder<T>
withInsertFrom(java.lang.Object aFrom, java.lang.String aFromPath)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.insertFrom(Object, String)
method.default PathMap.PathMapBuilder<T>
withInsertFrom(PathMap<T> aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default PathMap.PathMapBuilder<T>
withInsertTo(java.lang.String aToPath, java.lang.Object aFrom)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.insertTo(String, Object)
method.default PathMap.PathMapBuilder<T>
withInsertTo(java.lang.String aToPath, PathMap<T> aFrom)
Method to semantically emphasize that we support our own types.default PathMap.PathMapBuilder<T>
withPut(java.lang.String aKey, T aValue)
Builder method forKeys.MutableValues.put(Object, Object)
.default PathMap.PathMapBuilder<T>
withPut(Relation<java.lang.String,T> aRelation)
Builder method forDictionary.MutableDictionary.put(Relation)
.default PathMap.PathMapBuilder<T>
withRemoveFrom(java.lang.String aPath)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.removeFrom( String)
method.-
Methods inherited from interface org.refcodes.structure.Containable
isEmpty, size
-
Methods inherited from interface org.refcodes.structure.Keys.MutableValues
put
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entry, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from interface org.refcodes.structure.PathMap
children, children, children, directories, directories, directories, directories, directories, fromExternalKey, get, get, getArray, getArray, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getIndexed, getIndexed, getIndexes, getIndexes, getInteger, getInteger, getLong, getLong, getRootPath, getShort, getShort, hasChildren, hasChildren, hasChildren, hasIndexed, hasIndexed, hasParentPath, isArray, isArray, isArray, isArray, isArray, isChild, isChild, isChild, isDirectory, isDirectory, isDirectory, isDirectory, isIndexed, isIndexed, isPath, isRecord, isRecord, isRecord, isRecord, isRootPath, keySet, paths, paths, paths, paths, paths, query, query, queryFrom, queryPaths, queryTo, records, records, records, records, records, retrieve, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo, toDataStructure, toDataStructure, toExternalKey, toMap, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath, toPath
-
Methods inherited from interface org.refcodes.structure.PathMap.MutablePathMap
delete, insert, insert, insert, insert, insertFrom, insertFrom, insertTo, insertTo, put, put, putArray, putArray, remove, remove, removeAll, removeAll, removeFrom, removeFrom, removeFrom, removeFrom
-
-
-
-
Method Detail
-
withPut
default PathMap.PathMapBuilder<T> withPut(java.lang.String aKey, T aValue)
Builder method forKeys.MutableValues.put(Object, Object)
.- Specified by:
withPut
in interfaceDictionary.MutableDictionary.DictionaryBuilder<java.lang.String,T,PathMap.PathMapBuilder<T>>
- Parameters:
aKey
- the key for the property to be put.aValue
- the value for the property to be put.- Returns:
- The implementing instance as of the builder pattern.
-
withPut
default PathMap.PathMapBuilder<T> withPut(Relation<java.lang.String,T> aRelation)
Builder method forDictionary.MutableDictionary.put(Relation)
.- Specified by:
withPut
in interfaceDictionary.MutableDictionary.DictionaryBuilder<java.lang.String,T,PathMap.PathMapBuilder<T>>
- Parameters:
aRelation
- the property to be put.- Returns:
- The implementing instance as of the builder pattern.
-
withRemoveFrom
default PathMap.PathMapBuilder<T> withRemoveFrom(java.lang.String aPath)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.removeFrom( String)
method.- Parameters:
aPath
- The path from where to remove all properties.- Returns:
- This instance as of the Builder-Pattern to apply succeeding operations.
-
withInsert
default PathMap.PathMapBuilder<T> withInsert(java.lang.Object aObj)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.insert(Object)
method.- Parameters:
aObj
- the obj- Returns:
- This instance as of the Builder-Pattern to apply succeeding operations.
- See Also:
PathMap.MutablePathMap.insert(Object)
-
withInsertFrom
default PathMap.PathMapBuilder<T> withInsertFrom(java.lang.Object aFrom, java.lang.String aFromPath)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.insertFrom(Object, String)
method.- Parameters:
aFrom
- the fromaFromPath
- the from path- Returns:
- This instance as of the Builder-Pattern to apply succeeding operations.
- See Also:
PathMap.MutablePathMap.insertFrom(Object, String)
-
withInsertTo
default PathMap.PathMapBuilder<T> withInsertTo(java.lang.String aToPath, java.lang.Object aFrom)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.insertTo(String, Object)
method.- Parameters:
aToPath
- the to pathaFrom
- the from- Returns:
- This instance as of the Builder-Pattern to apply succeeding operations.
- See Also:
PathMap.MutablePathMap.insertTo(String, Object)
-
withInsert
default PathMap.PathMapBuilder<T> withInsert(java.lang.String aToPath, java.lang.Object aFrom, java.lang.String aFromPath)
Convenience method for providing builder functionality to thePathMap.MutablePathMap.insert(String, Object, String)
method.- Parameters:
aToPath
- the to pathaFrom
- the fromaFromPath
- the from path- Returns:
- This instance as of the Builder-Pattern to apply succeeding operations.
- See Also:
PathMap.MutablePathMap.insert(String, Object, String)
-
withInsert
default PathMap.PathMapBuilder<T> withInsert(PathMap<T> aFrom)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insert(Object)
.- Parameters:
aFrom
- ThePathMap
which is to be inspected with the therein contained values being added with their according determined paths.- Returns:
- This instance as of the Builder-Pattern to apply succeeding operations.
- See Also:
PathMap.MutablePathMap.insert(Object)
-
withInsertFrom
default PathMap.PathMapBuilder<T> withInsertFrom(PathMap<T> aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insertFrom(Object, String)
.- Parameters:
aFrom
- ThePathMap
which is to be inspected with the therein contained values being added with their according determined paths.aFromPath
- The path from where to start adding elements of the provided object.- Returns:
- This instance as of the Builder-Pattern to apply succeeding operations.
- See Also:
PathMap.MutablePathMap.insertFrom(Object, String)
-
withInsertTo
default PathMap.PathMapBuilder<T> withInsertTo(java.lang.String aToPath, PathMap<T> aFrom)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insertTo(String, Object)
.- Parameters:
aToPath
- The sub-path where to insert the object's introspected values to.aFrom
- ThePathMap
which is to be inspected with the therein contained values being added with their according determined paths.- Returns:
- This instance as of the Builder-Pattern to apply succeeding operations.
- See Also:
PathMap.MutablePathMap.insertTo(String, Object)
-
withInsert
default PathMap.PathMapBuilder<T> withInsert(java.lang.String aToPath, PathMap<T> aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types. Actually delegates toPathMap.MutablePathMap.insert(String, Object, String)
.- Parameters:
aToPath
- The sub-path where to insert the object's introspected values to.aFrom
- ThePathMap
which is to be inspected with the therein contained values being added with their according determined paths.aFromPath
- The path from where to start adding elements of the provided object.- Returns:
- This instance as of the Builder-Pattern to apply succeeding operations.
- See Also:
PathMap.MutablePathMap.insert(String, Object, String)
-
-