Class CipTree.ChildMap
- java.lang.Object
-
- com.automation_pros.odva.cip.types.CipTree.ChildMap
-
- All Implemented Interfaces:
java.util.Map<PathSegment,CipTree>
- Enclosing class:
- CipTree
protected class CipTree.ChildMap extends java.lang.Object implements java.util.Map<PathSegment,CipTree>
Children of each element of the hierarchy can have complex life cycles where removal from the tree requires a cleanup action. To ensure this happens in all cases, the map containing the association between path segments and children must intercept all operations that remove a child. The child is notified via the cleanup method that it is orphaned, and the identity of its former parent.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChildMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
protected java.util.Iterator<java.util.Map.Entry<PathSegment,CipTree>>
entryIterator()
java.util.Set<java.util.Map.Entry<PathSegment,CipTree>>
entrySet()
CipTree
get(java.lang.Object key)
boolean
isEmpty()
java.util.Set<PathSegment>
keySet()
CipTree
put(PathSegment key, CipTree value)
void
putAll(java.util.Map<? extends PathSegment,? extends CipTree> m)
CipTree
remove(java.lang.Object key)
boolean
remove(java.lang.Object key, java.lang.Object value)
int
size()
java.util.Collection<CipTree>
values()
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<PathSegment,CipTree>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<PathSegment,CipTree>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<PathSegment,CipTree>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.util.Map<PathSegment,CipTree>
-
get
public CipTree get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<PathSegment,CipTree>
-
put
public CipTree put(PathSegment key, CipTree value)
- Specified by:
put
in interfacejava.util.Map<PathSegment,CipTree>
-
remove
public CipTree remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map<PathSegment,CipTree>
-
remove
public boolean remove(java.lang.Object key, java.lang.Object value)
- Specified by:
remove
in interfacejava.util.Map<PathSegment,CipTree>
-
putAll
public void putAll(java.util.Map<? extends PathSegment,? extends CipTree> m)
- Specified by:
putAll
in interfacejava.util.Map<PathSegment,CipTree>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<PathSegment,CipTree>
-
entryIterator
protected java.util.Iterator<java.util.Map.Entry<PathSegment,CipTree>> entryIterator()
-
keySet
public java.util.Set<PathSegment> keySet()
- Specified by:
keySet
in interfacejava.util.Map<PathSegment,CipTree>
-
values
public java.util.Collection<CipTree> values()
- Specified by:
values
in interfacejava.util.Map<PathSegment,CipTree>
-
entrySet
public java.util.Set<java.util.Map.Entry<PathSegment,CipTree>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<PathSegment,CipTree>
-
-