Package org.opencms.util
Class CmsPathMap<V>
java.lang.Object
org.opencms.util.CmsPathMap<V>
- Type Parameters:
V
- the element type of the path map
Data structure which stores contents indexed by path.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an element for the given path, overwriting the previous element for that path if there is one.getChildValues
(String path) Gets the values for the direct children of the given path.getDescendantValues
(String path) Gets the values for the descendants of the path, including the path itself.
-
Constructor Details
-
CmsPathMap
public CmsPathMap()
-
-
Method Details
-
add
Adds an element for the given path, overwriting the previous element for that path if there is one.- Parameters:
path
- the pathvalue
- the element to add
-
getChildValues
Gets the values for the direct children of the given path.- Parameters:
path
- the path- Returns:
- the child values
-
getDescendantValues
Gets the values for the descendants of the path, including the path itself.- Parameters:
path
- the path- Returns:
- the descendant values for the path
-