Package org.refcodes.structure
Class StructureUtility
- java.lang.Object
-
- org.refcodes.structure.StructureUtility
-
public class StructureUtility extends java.lang.Object
Utility class to avoid redundant code regarding variousPathMap
implementations.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
IS_PARALLEL_EXPERIMENTAL
Variable for enabling parallel processing in thePathMap
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> void
retrieveFrom(PathMap<T> aFromPathMap, java.lang.String aFromPath, PathMap.PathMapBuilder<T> aToPathMap)
Hook method for implementing thePathMap.retrieveFrom(String)
method.static <T> void
retrieveTo(PathMap<T> aFromPathMap, java.lang.String aToPath, PathMap.PathMapBuilder<T> aToPathMap)
Hook method for implementing thePathMap.retrieveTo(String)
method.static java.lang.Object
toDataStructure(PathMap<?> aPathMap, java.lang.String aFromPath)
Hook method for implementing thePathMap.toDataStructure()
method.
-
-
-
Field Detail
-
IS_PARALLEL_EXPERIMENTAL
public static boolean IS_PARALLEL_EXPERIMENTAL
Variable for enabling parallel processing in thePathMap
.
-
-
Method Detail
-
retrieveFrom
public static <T> void retrieveFrom(PathMap<T> aFromPathMap, java.lang.String aFromPath, PathMap.PathMapBuilder<T> aToPathMap)
Hook method for implementing thePathMap.retrieveFrom(String)
method.- Type Parameters:
T
- The type of thePathMap
the functionality is to be applied to.- Parameters:
aFromPathMap
- ThePathMap
from which to retrieve.aFromPath
- The path from where to start extracting the paths.aToPathMap
- ThePathMap.PathMapBuilder
which to put the result in.
-
retrieveTo
public static <T> void retrieveTo(PathMap<T> aFromPathMap, java.lang.String aToPath, PathMap.PathMapBuilder<T> aToPathMap)
Hook method for implementing thePathMap.retrieveTo(String)
method.- Type Parameters:
T
- The type of thePathMap
the functionality is to be applied to.- Parameters:
aFromPathMap
- ThePathMap
from which to retrieve.aToPath
- The path where to relocate the paths of thisPathMap
to.aToPathMap
- ThePathMap.PathMapBuilder
which to put the result in.
-
toDataStructure
public static java.lang.Object toDataStructure(PathMap<?> aPathMap, java.lang.String aFromPath)
Hook method for implementing thePathMap.toDataStructure()
method.
-
-