Class OutgoingReferences
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,List<String>>
-
- org.ametys.cms.content.references.OutgoingReferences
-
public class OutgoingReferences extends HashMap<String,List<String>>
Outgoing references.They are simply a
Map
where keys are the reference types (String) and values are the reference values (List) with some convenient methods.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static OutgoingReferences
EMPTY
An unmodifiable empty map of outgoing references
-
Constructor Summary
Constructors Constructor Description OutgoingReferences()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
merge(OutgoingReferences others)
Merge outgoing references with the current ones-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Field Detail
-
EMPTY
public static final OutgoingReferences EMPTY
An unmodifiable empty map of outgoing references
-
-
Constructor Detail
-
OutgoingReferences
public OutgoingReferences()
-
-
Method Detail
-
merge
public void merge(OutgoingReferences others)
Merge outgoing references with the current ones- Parameters:
others
- The new references
-
-