Class TreeSpliterator.DepthAcceptor<T>

  • All Implemented Interfaces:
    java.util.function.Consumer<T>
    Enclosing class:
    TreeSpliterator<T,​U>

    static class TreeSpliterator.DepthAcceptor<T>
    extends java.lang.Object
    implements java.util.function.Consumer<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.function.Consumer<? super java.util.Map.Entry<java.lang.Integer,​T>> action  
      private java.lang.Integer depth  
      private java.util.function.BiFunction<java.lang.Integer,​T,​java.util.stream.Stream<T>> mapper  
    • Constructor Summary

      Constructors 
      Constructor Description
      DepthAcceptor​(java.util.function.Consumer<? super java.util.Map.Entry<java.lang.Integer,​T>> action, java.util.function.BiFunction<java.lang.Integer,​T,​java.util.stream.Stream<T>> mapper, java.lang.Integer depth)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(T t)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Field Detail

      • action

        private final java.util.function.Consumer<? super java.util.Map.Entry<java.lang.Integer,​T>> action
      • mapper

        private final java.util.function.BiFunction<java.lang.Integer,​T,​java.util.stream.Stream<T>> mapper
      • depth

        private java.lang.Integer depth
    • Constructor Detail

      • DepthAcceptor

        public DepthAcceptor​(java.util.function.Consumer<? super java.util.Map.Entry<java.lang.Integer,​T>> action,
                             java.util.function.BiFunction<java.lang.Integer,​T,​java.util.stream.Stream<T>> mapper,
                             java.lang.Integer depth)
    • Method Detail

      • accept

        public void accept​(T t)
        Specified by:
        accept in interface java.util.function.Consumer<T>