Class MappedIterator<B,​T extends B>

  • Direct Known Subclasses:
    NodeIterator

    public class MappedIterator<B,​T extends B>
    extends java.lang.Object
    • Field Detail

      • myElement

        @NotNull
        protected final B myElement
      • myTreeIterator

        @NotNull
        protected final @NotNull TreeIterator<B> myTreeIterator
    • Method Detail

      • getTreeIterator

        @NotNull
        public final @NotNull TreeIterator<B> getTreeIterator()
      • doLoop

        @NotNull
        public final <R> R doLoop​(@NotNull
                                  R defaultValue,
                                  @NotNull
                                  @NotNull ValueIterationConsumer<? super T,​R> consumer)
      • recursive

        @NotNull
        public @NotNull MappedIterator<B,​T> recursive​(boolean recursive)
      • nonRecursive

        @NotNull
        public @NotNull MappedIterator<B,​T> nonRecursive​(boolean nonRecursive)
      • recurse

        @NotNull
        public @NotNull MappedIterator<B,​T> recurse​(@NotNull
                                                          @NotNull java.util.function.Predicate<? super B> predicate)
      • recurse

        @NotNull
        public @NotNull MappedIterator<B,​T> recurse​(@NotNull
                                                          @NotNull java.lang.Class<? super B> clazz)
      • recurse

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

        @NotNull
        public @NotNull MappedIterator<B,​T> noRecurse​(@NotNull
                                                            @NotNull java.util.function.Predicate<? super B> predicate)
      • noRecurse

        @NotNull
        public @NotNull MappedIterator<B,​T> noRecurse​(@NotNull
                                                            @NotNull java.lang.Class<? super B> clazz)
      • noRecurse

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

        @NotNull
        public @NotNull MappedIterator<B,​T> filterOut​(@NotNull
                                                            @NotNull java.util.function.Predicate<? super B> predicate)
      • filterOut

        @NotNull
        public @NotNull MappedIterator<B,​T> filterOut​(@NotNull
                                                            @NotNull java.lang.Class<? super B> clazz)
      • filterOut

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

        @NotNull
        public @NotNull MappedIterator<B,​T> filter​(@NotNull
                                                         @NotNull java.util.function.Predicate<? super B> predicate)
      • filter

        @NotNull
        public <F extends B> @NotNull MappedIterator<B,​F> filter​(@NotNull
                                                                       @NotNull java.lang.Class<F> clazz)
      • filter

        @NotNull
        public <F extends B> @NotNull MappedIterator<B,​F> filter​(@NotNull
                                                                       @NotNull java.lang.Class<F> clazz,
                                                                       @NotNull
                                                                       @NotNull java.util.function.Predicate<? super F> predicate)
      • adapt

        @NotNull
        public <F extends B> @NotNull MappedIterator<B,​F> adapt​(@NotNull
                                                                      @NotNull java.util.function.Function<? super T,​F> adapter)
      • toObjectMapped

        @NotNull
        public @NotNull MappedIterator<java.lang.Object,​B> toObjectMapped​(java.lang.Class<B> clazz)