Class NodeImpl

    • Method Detail

      • getSnapshot

        protected static <E extends NodeImplList<E> getSnapshot​(List<E> children)
        For thread safety and encapsulation, returns an unmodifiable copy of the list.
      • getSnapshot

        protected static <E extends NodeImplList<E> getSnapshot​(E child)
        For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped.
      • getSnapshot

        protected static <E extends NodeImplList<E> getSnapshot​(E child1,
                                                                  E child2)
        For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped.
      • getSnapshot

        protected static <E extends NodeImplList<E> getSnapshot​(E child1,
                                                                  E child2,
                                                                  E child3)
        For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped.
      • getSnapshot

        protected static <E extends NodeImplList<E> getSnapshot​(E child1,
                                                                  E child2,
                                                                  E child3,
                                                                  E child4)
        For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped.
      • getSnapshot

        @SafeVarargs
        protected static <E extends NodeImplList<E> getSnapshot​(E... children)
        For thread safety and encapsulation, returns an unmodifiable copy of the list. Any null child is skipped.
      • getMaxAlertLevel

        protected AlertLevel getMaxAlertLevel()
        Every node may optionally constrain the maximum alert level for itself and all of its children.
      • constrainAlertLevel

        protected AlertLevel constrainAlertLevel​(AlertLevel level)
        Makes sure the alert level does not exceed the maximum for this node or any of its parents. Will reduce the level to not exceed any maximum.
      • getAllowsChildren

        public abstract boolean getAllowsChildren()
        Specified by:
        getAllowsChildren in interface Node