Class TreeIterator<N>


  • public class TreeIterator<N>
    extends java.lang.Object
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
      • LOG_INFO

        public static final org.slf4j.Logger LOG_INFO
      • LOG_TRACE

        public static final org.slf4j.Logger LOG_TRACE
      • TRUE

        public static final java.util.function.Predicate<java.lang.Object> TRUE
      • FALSE

        public static final java.util.function.Predicate<java.lang.Object> FALSE
      • NOT_NULL

        public static final java.util.function.Predicate<java.lang.Object> NOT_NULL
      • myRecursion

        private final java.util.function.Predicate<? super N> myRecursion
      • myFilter

        protected final java.util.function.Predicate<? super N> myFilter
    • Constructor Detail

      • TreeIterator

        public TreeIterator​(IterationConditions<N> constraints,
                            java.util.function.Predicate<? super N> filter)
      • TreeIterator

        public TreeIterator​(IterationConditions<N> constraints,
                            java.util.function.Predicate<? super N> filter,
                            java.util.function.Predicate<? super N> recursion)
    • Method Detail

      • getPredicate

        @NotNull
        public @NotNull java.util.function.Predicate<N> getPredicate​(@NotNull
                                                                     @NotNull java.lang.Class<? super N> clazz)
      • getPredicate

        @NotNull
        public <F> @NotNull java.util.function.Predicate<N> getPredicate​(@NotNull
                                                                         @NotNull java.lang.Class<F> clazz,
                                                                         @NotNull
                                                                         @NotNull java.util.function.Predicate<? super F> predicate)
      • getRecursion

        public java.util.function.Predicate<? super N> getRecursion()
      • getFilter

        public java.util.function.Predicate<? super N> getFilter()
      • modifiedCopy

        @NotNull
        public @NotNull TreeIterator<N> modifiedCopy​(@NotNull
                                                     @NotNull IterationConditions<N> constraints,
                                                     @NotNull
                                                     @NotNull java.util.function.Predicate<? super N> filter,
                                                     @NotNull
                                                     @NotNull java.util.function.Predicate<? super N> recursion)
      • recursive

        @NotNull
        public @NotNull TreeIterator<N> recursive()
      • nonRecursive

        @NotNull
        public @NotNull TreeIterator<N> nonRecursive()
      • recurse

        @NotNull
        public @NotNull TreeIterator<N> recurse​(@NotNull
                                                @NotNull java.util.function.Predicate<? super N> predicate)
      • recurse

        @NotNull
        public @NotNull TreeIterator<N> recurse​(@NotNull
                                                @NotNull java.lang.Class<? super N> clazz)
      • recurse

        @NotNull
        public <F> @NotNull TreeIterator<N> recurse​(@NotNull
                                                    @NotNull java.lang.Class<F> clazz,
                                                    @NotNull
                                                    @NotNull java.util.function.Predicate<? super F> predicate)
      • noRecurse

        @NotNull
        public @NotNull TreeIterator<N> noRecurse​(@NotNull
                                                  @NotNull java.util.function.Predicate<? super N> predicate)
      • noRecurse

        @NotNull
        public @NotNull TreeIterator<N> noRecurse​(@NotNull
                                                  @NotNull java.lang.Class<? super N> clazz)
      • noRecurse

        @NotNull
        public <F> @NotNull TreeIterator<N> noRecurse​(@NotNull
                                                      @NotNull java.lang.Class<F> clazz,
                                                      @NotNull
                                                      @NotNull java.util.function.Predicate<? super F> predicate)
      • filterOut

        @NotNull
        public @NotNull TreeIterator<N> filterOut​(@NotNull
                                                  @NotNull java.util.function.Predicate<? super N> predicate)
      • filterOut

        @NotNull
        public @NotNull TreeIterator<N> filterOut​(@NotNull
                                                  @NotNull java.lang.Class<? super N> clazz)
      • filterOut

        @NotNull
        public <F> @NotNull TreeIterator<N> filterOut​(@NotNull
                                                      @NotNull java.lang.Class<F> clazz,
                                                      @NotNull
                                                      @NotNull java.util.function.Predicate<? super F> predicate)
      • filter

        @NotNull
        public @NotNull TreeIterator<N> filter​(@NotNull
                                               @NotNull java.util.function.Predicate<? super N> predicate)
      • filter

        @NotNull
        public @NotNull TreeIterator<N> filter​(@NotNull
                                               @NotNull java.lang.Class<? super N> clazz)
      • filter

        @NotNull
        public <F> @NotNull TreeIterator<N> filter​(@NotNull
                                                   @NotNull java.lang.Class<F> clazz,
                                                   @NotNull
                                                   @NotNull java.util.function.Predicate<? super F> predicate)
      • of

        @NotNull
        public static <N> @NotNull TreeIterator<N> of​(@NotNull
                                                      @NotNull IterationConditions<N> constraints,
                                                      @NotNull
                                                      @NotNull java.util.function.Predicate<? super N> filter)
      • of

        @NotNull
        public static <N> @NotNull TreeIterator<N> of​(@NotNull
                                                      @NotNull IterationConditions<N> constraints,
                                                      @NotNull
                                                      @NotNull java.util.function.Predicate<? super N> filter,
                                                      @NotNull
                                                      @NotNull java.util.function.Predicate<? super N> recursion)
      • TRUE

        @NotNull
        public static <N> @NotNull java.util.function.Predicate<N> TRUE()
      • FALSE

        @NotNull
        public static <N> @NotNull java.util.function.Predicate<N> FALSE()
      • doLoop

        @NotNull
        public <R> R doLoop​(@NotNull
                            N element,
                            @NotNull
                            R defaultValue,
                            @NotNull
                            @NotNull ValueIterationConsumer<? super N,​R> consumer)
      • doLoop

        public void doLoop​(@NotNull
                           N element,
                           @NotNull
                           @NotNull VoidIterationConsumer<? super N> consumer)
      • doLoop

        @NotNull
        public <T,​R> R doLoop​(@NotNull
                                    N element,
                                    @NotNull
                                    R defaultValue,
                                    @NotNull
                                    @NotNull ValueIterationAdapter<? super N,​T> adapter,
                                    @NotNull
                                    @NotNull ValueIterationConsumer<? super T,​R> consumer)