Interface MutableHierarchy<T>

  • All Superinterfaces:
    Hierarchy<T>, java.io.Serializable
    All Known Implementing Classes:
    SimpleHierarchy

    public interface MutableHierarchy<T>
    extends Hierarchy<T>
    Defines the requirements for a hierarchy that can change -- by adding or removing elements
    • Method Detail

      • addChild

        T addChild​(T parent,
                   T child)
      • insertChild

        void insertChild​(T parent,
                         int index,
                         T child)
      • removeChild

        void removeChild​(T parent,
                         T child)
      • moveChild

        void moveChild​(T oldParent,
                       T newParent,
                       int index,
                       T child)
      • setChildren

        void setChildren​(T parent,
                         java.util.List<T> children)
      • addChildren

        void addChildren​(T parent,
                         java.util.List<T> children)
      • removeChildren

        void removeChildren​(java.util.List<T> children)
      • removeAll

        void removeAll()