public static class CmsPublishRelationFinder.ResourceMap extends java.util.HashMap<CmsResource,java.util.Set<CmsResource>>
Constructor and Description |
---|
ResourceMap()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CmsPublishRelationFinder.ResourceMap |
filter(com.google.common.base.Predicate<CmsResource> pred)
Creates a new resource map based on this instance while filtering some elements out.
|
java.util.Set<CmsResource> |
get(java.lang.Object res) |
int |
totalSize()
Returns the sum of all sizes of set values.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public ResourceMap()
public CmsPublishRelationFinder.ResourceMap filter(com.google.common.base.Predicate<CmsResource> pred)
The given predicate is used to check whether any single resource should be kept. If it returns false for a top-level resource (map key), the parent will be removed and all its children added as keys. If it returns false for a map value, the value will be removed for its key.
pred
- predicate to check whether resources should be keptpublic java.util.Set<CmsResource> get(java.lang.Object res)
get
in interface java.util.Map<CmsResource,java.util.Set<CmsResource>>
get
in class java.util.HashMap<CmsResource,java.util.Set<CmsResource>>
HashMap.get(java.lang.Object)
public int totalSize()