Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ChildMap()  
    • Constructor Detail

      • ChildMap

        protected ChildMap()
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Map<PathSegment,​CipTree>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<PathSegment,​CipTree>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<PathSegment,​CipTree>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<PathSegment,​CipTree>
      • remove

        public CipTree remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<PathSegment,​CipTree>
      • remove

        public boolean remove​(java.lang.Object key,
                              java.lang.Object value)
        Specified by:
        remove in interface java.util.Map<PathSegment,​CipTree>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<PathSegment,​CipTree>
      • entryIterator

        protected java.util.Iterator<java.util.Map.Entry<PathSegment,​CipTree>> entryIterator()
      • values

        public java.util.Collection<CipTree> values()
        Specified by:
        values in interface java.util.Map<PathSegment,​CipTree>