Class EntryPipeline<K,​V>

  • All Implemented Interfaces:
    MapStream<K,​V>, java.lang.AutoCloseable, java.util.stream.BaseStream<java.util.Map.Entry<K,​V>,​MapStream<K,​V>>

    final class EntryPipeline<K,​V>
    extends java.lang.Object
    implements MapStream<K,​V>
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  EntryPipeline.While<T>  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.stream.Stream<java.util.Map.Entry<K,​V>> stream  
    • Constructor Summary

      Constructors 
      Constructor Description
      EntryPipeline​(java.util.stream.Stream<? extends java.util.Map.Entry<? extends K,​? extends V>> stream)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean allMatch​(java.util.function.BiPredicate<? super K,​? super V> predicate)  
      boolean anyMatch​(java.util.function.BiPredicate<? super K,​? super V> predicate)  
      void close()  
      <R> R collect​(java.util.function.Supplier<R> supplier, java.util.function.BiConsumer<R,​? super java.util.Map.Entry<? extends K,​? extends V>> accumulator, java.util.function.BiConsumer<R,​R> combiner)  
      <R,​A>
      R
      collect​(java.util.stream.Collector<? super java.util.Map.Entry<? extends K,​? extends V>,​A,​R> collector)  
      private static <K,​V>
      java.util.Comparator<java.util.Map.Entry<K,​V>>
      comparing()  
      private static <K,​V>
      java.util.Comparator<java.util.Map.Entry<K,​V>>
      comparingByKey()  
      private static <K,​V>
      java.util.Comparator<java.util.Map.Entry<K,​V>>
      comparingByValue()  
      long count()  
      MapStream<K,​V> distinct()  
      MapStream<K,​V> dropWhile​(java.util.function.BiPredicate<? super K,​? super V> predicate)  
      private java.util.stream.Stream<java.util.Map.Entry<K,​V>> dropWhile​(java.util.function.Predicate<? super java.util.Map.Entry<K,​V>> predicate)  
      MapStream<K,​V> dropWhileKey​(java.util.function.Predicate<? super K> predicate)  
      MapStream<K,​V> dropWhileValue​(java.util.function.Predicate<? super V> predicate)  
      java.util.stream.Stream<java.util.Map.Entry<K,​V>> entries()  
      MapStream<K,​V> filter​(java.util.function.BiPredicate<? super K,​? super V> filter)  
      MapStream<K,​V> filterKey​(java.util.function.Predicate<? super K> filter)  
      MapStream<K,​V> filterValue​(java.util.function.Predicate<? super V> filter)  
      java.util.Optional<java.util.Map.Entry<K,​V>> findAny()  
      java.util.Optional<java.util.Map.Entry<K,​V>> findFirst()  
      <R,​S>
      MapStream<R,​S>
      flatMap​(java.util.function.BiFunction<? super K,​? super V,​? extends MapStream<? extends R,​? extends S>> mapper)  
      java.util.stream.DoubleStream flatMapToDouble​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.DoubleStream> mapper)  
      java.util.stream.IntStream flatMapToInt​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.IntStream> mapper)  
      java.util.stream.LongStream flatMapToLong​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.LongStream> mapper)  
      <R> java.util.stream.Stream<R> flatMapToObj​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.Stream<? extends R>> mapper)  
      void forEach​(java.util.function.BiConsumer<? super K,​? super V> consumer)  
      void forEachOrdered​(java.util.function.BiConsumer<? super K,​? super V> consumer)  
      boolean isParallel()  
      java.util.Iterator<java.util.Map.Entry<K,​V>> iterator()  
      java.util.stream.Stream<K> keys()  
      MapStream<K,​V> limit​(long maxSize)  
      <R,​S>
      MapStream<R,​S>
      map​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.Map.Entry<? extends R,​? extends S>> mapper)  
      <R> MapStream<R,​V> mapKey​(java.util.function.Function<? super K,​? extends R> mapper)  
      java.util.stream.DoubleStream mapToDouble​(java.util.function.ToDoubleBiFunction<? super K,​? super V> mapper)  
      java.util.stream.IntStream mapToInt​(java.util.function.ToIntBiFunction<? super K,​? super V> mapper)  
      java.util.stream.LongStream mapToLong​(java.util.function.ToLongBiFunction<? super K,​? super V> mapper)  
      <R> java.util.stream.Stream<R> mapToObj​(java.util.function.BiFunction<? super K,​? super V,​? extends R> mapper)  
      <S> MapStream<K,​S> mapValue​(java.util.function.Function<? super V,​? extends S> mapper)  
      java.util.Optional<java.util.Map.Entry<K,​V>> max​(java.util.Comparator<? super java.util.Map.Entry<K,​V>> comparator)  
      java.util.Optional<java.util.Map.Entry<K,​V>> maxByKey​(java.util.Comparator<? super K> comparator)  
      java.util.Optional<java.util.Map.Entry<K,​V>> maxByValue​(java.util.Comparator<? super V> comparator)  
      java.util.Optional<java.util.Map.Entry<K,​V>> min​(java.util.Comparator<? super java.util.Map.Entry<K,​V>> comparator)  
      java.util.Optional<java.util.Map.Entry<K,​V>> minByKey​(java.util.Comparator<? super K> comparator)  
      java.util.Optional<java.util.Map.Entry<K,​V>> minByValue​(java.util.Comparator<? super V> comparator)  
      boolean noneMatch​(java.util.function.BiPredicate<? super K,​? super V> predicate)  
      MapStream<K,​V> onClose​(java.lang.Runnable closeHandler)  
      MapStream<K,​V> parallel()  
      MapStream<K,​V> peek​(java.util.function.BiConsumer<? super K,​? super V> peek)  
      MapStream<K,​V> peekKey​(java.util.function.Consumer<? super K> peek)  
      MapStream<K,​V> peekValue​(java.util.function.Consumer<? super V> peek)  
      MapStream<K,​V> sequential()  
      MapStream<K,​V> skip​(long n)  
      MapStream<K,​V> sorted()  
      MapStream<K,​V> sorted​(java.util.Comparator<? super java.util.Map.Entry<K,​V>> comparator)  
      MapStream<K,​V> sortedByKey()  
      MapStream<K,​V> sortedByKey​(java.util.Comparator<? super K> comparator)  
      MapStream<K,​V> sortedByValue()  
      MapStream<K,​V> sortedByValue​(java.util.Comparator<? super V> comparator)  
      java.util.Spliterator<java.util.Map.Entry<K,​V>> spliterator()  
      MapStream<K,​V> takeWhile​(java.util.function.BiPredicate<? super K,​? super V> predicate)  
      private java.util.stream.Stream<java.util.Map.Entry<K,​V>> takeWhile​(java.util.function.Predicate<? super java.util.Map.Entry<K,​V>> predicate)  
      MapStream<K,​V> takeWhileKey​(java.util.function.Predicate<? super K> predicate)  
      MapStream<K,​V> takeWhileValue​(java.util.function.Predicate<? super V> predicate)  
      java.util.Map.Entry<K,​V>[] toArray()  
      MapStream<K,​V> unordered()  
      java.util.stream.Stream<V> values()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • stream

        private final java.util.stream.Stream<java.util.Map.Entry<K,​V>> stream
    • Constructor Detail

      • EntryPipeline

        EntryPipeline​(java.util.stream.Stream<? extends java.util.Map.Entry<? extends K,​? extends V>> stream)
    • Method Detail

      • entries

        public java.util.stream.Stream<java.util.Map.Entry<K,​V>> entries()
        Specified by:
        entries in interface MapStream<K,​V>
      • keys

        public java.util.stream.Stream<K> keys()
        Specified by:
        keys in interface MapStream<K,​V>
      • values

        public java.util.stream.Stream<V> values()
        Specified by:
        values in interface MapStream<K,​V>
      • iterator

        public java.util.Iterator<java.util.Map.Entry<K,​V>> iterator()
        Specified by:
        iterator in interface java.util.stream.BaseStream<K,​V>
      • spliterator

        public java.util.Spliterator<java.util.Map.Entry<K,​V>> spliterator()
        Specified by:
        spliterator in interface java.util.stream.BaseStream<K,​V>
      • isParallel

        public boolean isParallel()
        Specified by:
        isParallel in interface java.util.stream.BaseStream<K,​V>
      • sequential

        public MapStream<K,​V> sequential()
        Specified by:
        sequential in interface java.util.stream.BaseStream<K,​V>
      • parallel

        public MapStream<K,​V> parallel()
        Specified by:
        parallel in interface java.util.stream.BaseStream<K,​V>
      • unordered

        public MapStream<K,​V> unordered()
        Specified by:
        unordered in interface java.util.stream.BaseStream<K,​V>
      • onClose

        public MapStream<K,​V> onClose​(java.lang.Runnable closeHandler)
        Specified by:
        onClose in interface java.util.stream.BaseStream<K,​V>
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.util.stream.BaseStream<K,​V>
      • filter

        public MapStream<K,​V> filter​(java.util.function.BiPredicate<? super K,​? super V> filter)
        Specified by:
        filter in interface MapStream<K,​V>
      • map

        public <R,​S> MapStream<R,​S> map​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.Map.Entry<? extends R,​? extends S>> mapper)
        Specified by:
        map in interface MapStream<K,​V>
      • mapKey

        public <R> MapStream<R,​V> mapKey​(java.util.function.Function<? super K,​? extends R> mapper)
        Specified by:
        mapKey in interface MapStream<K,​V>
      • mapValue

        public <S> MapStream<K,​S> mapValue​(java.util.function.Function<? super V,​? extends S> mapper)
        Specified by:
        mapValue in interface MapStream<K,​V>
      • mapToObj

        public <R> java.util.stream.Stream<R> mapToObj​(java.util.function.BiFunction<? super K,​? super V,​? extends R> mapper)
        Specified by:
        mapToObj in interface MapStream<K,​V>
      • mapToInt

        public java.util.stream.IntStream mapToInt​(java.util.function.ToIntBiFunction<? super K,​? super V> mapper)
        Specified by:
        mapToInt in interface MapStream<K,​V>
      • mapToLong

        public java.util.stream.LongStream mapToLong​(java.util.function.ToLongBiFunction<? super K,​? super V> mapper)
        Specified by:
        mapToLong in interface MapStream<K,​V>
      • mapToDouble

        public java.util.stream.DoubleStream mapToDouble​(java.util.function.ToDoubleBiFunction<? super K,​? super V> mapper)
        Specified by:
        mapToDouble in interface MapStream<K,​V>
      • flatMap

        public <R,​S> MapStream<R,​S> flatMap​(java.util.function.BiFunction<? super K,​? super V,​? extends MapStream<? extends R,​? extends S>> mapper)
        Specified by:
        flatMap in interface MapStream<K,​V>
      • flatMapToObj

        public <R> java.util.stream.Stream<R> flatMapToObj​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.Stream<? extends R>> mapper)
        Specified by:
        flatMapToObj in interface MapStream<K,​V>
      • flatMapToInt

        public java.util.stream.IntStream flatMapToInt​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.IntStream> mapper)
        Specified by:
        flatMapToInt in interface MapStream<K,​V>
      • flatMapToLong

        public java.util.stream.LongStream flatMapToLong​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.LongStream> mapper)
        Specified by:
        flatMapToLong in interface MapStream<K,​V>
      • flatMapToDouble

        public java.util.stream.DoubleStream flatMapToDouble​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.DoubleStream> mapper)
        Specified by:
        flatMapToDouble in interface MapStream<K,​V>
      • peek

        public MapStream<K,​V> peek​(java.util.function.BiConsumer<? super K,​? super V> peek)
        Specified by:
        peek in interface MapStream<K,​V>
      • comparingByKey

        private static <K,​V> java.util.Comparator<java.util.Map.Entry<K,​V>> comparingByKey()
      • comparingByValue

        private static <K,​V> java.util.Comparator<java.util.Map.Entry<K,​V>> comparingByValue()
      • comparing

        private static <K,​V> java.util.Comparator<java.util.Map.Entry<K,​V>> comparing()
      • sorted

        public MapStream<K,​V> sorted​(java.util.Comparator<? super java.util.Map.Entry<K,​V>> comparator)
        Specified by:
        sorted in interface MapStream<K,​V>
      • forEach

        public void forEach​(java.util.function.BiConsumer<? super K,​? super V> consumer)
        Specified by:
        forEach in interface MapStream<K,​V>
      • forEachOrdered

        public void forEachOrdered​(java.util.function.BiConsumer<? super K,​? super V> consumer)
        Specified by:
        forEachOrdered in interface MapStream<K,​V>
      • count

        public long count()
        Specified by:
        count in interface MapStream<K,​V>
      • anyMatch

        public boolean anyMatch​(java.util.function.BiPredicate<? super K,​? super V> predicate)
        Specified by:
        anyMatch in interface MapStream<K,​V>
      • allMatch

        public boolean allMatch​(java.util.function.BiPredicate<? super K,​? super V> predicate)
        Specified by:
        allMatch in interface MapStream<K,​V>
      • noneMatch

        public boolean noneMatch​(java.util.function.BiPredicate<? super K,​? super V> predicate)
        Specified by:
        noneMatch in interface MapStream<K,​V>
      • collect

        public <R,​A> R collect​(java.util.stream.Collector<? super java.util.Map.Entry<? extends K,​? extends V>,​A,​R> collector)
        Specified by:
        collect in interface MapStream<K,​V>
      • collect

        public <R> R collect​(java.util.function.Supplier<R> supplier,
                             java.util.function.BiConsumer<R,​? super java.util.Map.Entry<? extends K,​? extends V>> accumulator,
                             java.util.function.BiConsumer<R,​R> combiner)
        Specified by:
        collect in interface MapStream<K,​V>
      • max

        public java.util.Optional<java.util.Map.Entry<K,​V>> max​(java.util.Comparator<? super java.util.Map.Entry<K,​V>> comparator)
        Specified by:
        max in interface MapStream<K,​V>
      • maxByKey

        public java.util.Optional<java.util.Map.Entry<K,​V>> maxByKey​(java.util.Comparator<? super K> comparator)
        Specified by:
        maxByKey in interface MapStream<K,​V>
      • maxByValue

        public java.util.Optional<java.util.Map.Entry<K,​V>> maxByValue​(java.util.Comparator<? super V> comparator)
        Specified by:
        maxByValue in interface MapStream<K,​V>
      • min

        public java.util.Optional<java.util.Map.Entry<K,​V>> min​(java.util.Comparator<? super java.util.Map.Entry<K,​V>> comparator)
        Specified by:
        min in interface MapStream<K,​V>
      • minByKey

        public java.util.Optional<java.util.Map.Entry<K,​V>> minByKey​(java.util.Comparator<? super K> comparator)
        Specified by:
        minByKey in interface MapStream<K,​V>
      • minByValue

        public java.util.Optional<java.util.Map.Entry<K,​V>> minByValue​(java.util.Comparator<? super V> comparator)
        Specified by:
        minByValue in interface MapStream<K,​V>
      • findAny

        public java.util.Optional<java.util.Map.Entry<K,​V>> findAny()
        Specified by:
        findAny in interface MapStream<K,​V>
      • findFirst

        public java.util.Optional<java.util.Map.Entry<K,​V>> findFirst()
        Specified by:
        findFirst in interface MapStream<K,​V>
      • toArray

        public java.util.Map.Entry<K,​V>[] toArray()
        Specified by:
        toArray in interface MapStream<K,​V>
      • takeWhile

        public MapStream<K,​V> takeWhile​(java.util.function.BiPredicate<? super K,​? super V> predicate)
        Specified by:
        takeWhile in interface MapStream<K,​V>
      • dropWhile

        public MapStream<K,​V> dropWhile​(java.util.function.BiPredicate<? super K,​? super V> predicate)
        Specified by:
        dropWhile in interface MapStream<K,​V>
      • takeWhile

        private java.util.stream.Stream<java.util.Map.Entry<K,​V>> takeWhile​(java.util.function.Predicate<? super java.util.Map.Entry<K,​V>> predicate)
      • dropWhile

        private java.util.stream.Stream<java.util.Map.Entry<K,​V>> dropWhile​(java.util.function.Predicate<? super java.util.Map.Entry<K,​V>> predicate)