Interface MapStream<K,​V>

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

    public interface MapStream<K,​V>
    extends java.util.stream.BaseStream<java.util.Map.Entry<K,​V>,​MapStream<K,​V>>
    • Method Summary

      All Methods Static Methods Instance Methods Abstract 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)  
      <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)  
      static <K,​V>
      MapStream<K,​V>
      concat​(MapStream<? extends K,​? extends V> a, MapStream<? extends K,​? extends V> b)  
      long count()  
      MapStream<K,​V> distinct()  
      MapStream<K,​V> dropWhile​(java.util.function.BiPredicate<? super K,​? super V> predicate)  
      MapStream<K,​V> dropWhileKey​(java.util.function.Predicate<? super K> predicate)  
      MapStream<K,​V> dropWhileValue​(java.util.function.Predicate<? super V> predicate)  
      static <K,​V>
      MapStream<K,​V>
      empty()  
      java.util.stream.Stream<java.util.Map.Entry<K,​V>> entries()  
      static <K,​V>
      java.util.Map.Entry<K,​V>
      entry​(K key, V value)  
      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)  
      <R> MapStream<R,​V> flatMapKey​(java.util.function.Function<? super K,​? extends java.util.stream.Stream<? extends R>> 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)  
      <O> java.util.stream.Stream<O> flatMapToObj​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.Stream<? extends O>> mapper)  
      <S> MapStream<K,​S> flatMapValue​(java.util.function.Function<? super V,​? extends java.util.stream.Stream<? extends S>> mapper)  
      void forEach​(java.util.function.BiConsumer<? super K,​? super V> consumer)  
      void forEachOrdered​(java.util.function.BiConsumer<? super K,​? super V> consumer)  
      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)  
      <O> java.util.stream.Stream<O> mapToObj​(java.util.function.BiFunction<? super K,​? super V,​? extends O> 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)  
      static <K,​V>
      MapStream<K,​V>
      of​(java.util.Collection<? extends java.util.Map.Entry<? extends K,​? extends V>> collection)  
      static <K,​V>
      MapStream<K,​V>
      of​(java.util.Map<? extends K,​? extends V> map)  
      static <K,​V>
      MapStream<K,​V>
      of​(java.util.stream.Stream<? extends java.util.Map.Entry<? extends K,​? extends V>> stream)  
      static <K,​V>
      MapStream<K,​V>
      of​(K k1, V v1)  
      static <K,​V>
      MapStream<K,​V>
      of​(K k1, V v1, K k2, V v2)  
      static <K,​V>
      MapStream<K,​V>
      of​(K k1, V v1, K k2, V v2, K k3, V v3)  
      static <K,​V>
      MapStream<K,​V>
      of​(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)  
      static <K,​V>
      MapStream<K,​V>
      ofEntries​(java.util.Map.Entry<? extends K,​? extends V>... entries)  
      static <O,​K,​V>
      MapStream<K,​V>
      ofEntries​(java.util.stream.Stream<? extends O> stream, java.util.function.Function<? super O,​? extends java.util.Map.Entry<? extends K,​? extends V>> entryMapper)  
      static <K,​V>
      MapStream<K,​V>
      ofNullable​(java.util.Collection<? extends java.util.Map.Entry<? extends K,​? extends V>> collection)  
      static <K,​V>
      MapStream<K,​V>
      ofNullable​(java.util.Map<? extends K,​? extends V> map)  
      static <K,​V>
      MapStream<K,​V>
      ofNullable​(java.util.stream.Stream<? extends java.util.Map.Entry<? extends K,​? extends V>> stream)  
      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> 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)  
      MapStream<K,​V> takeWhile​(java.util.function.BiPredicate<? super K,​? super 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()  
      static <K,​V>
      java.util.stream.Collector<? super java.util.Map.Entry<? extends K,​? extends V>,​?,​java.util.Map<K,​V>>
      toMap()  
      static <K,​V>
      java.util.stream.Collector<? super java.util.Map.Entry<? extends K,​? extends V>,​?,​java.util.Map<K,​V>>
      toMap​(java.util.function.BinaryOperator<V> mergeFunction)  
      static <K,​V,​M extends java.util.Map<K,​V>>
      java.util.stream.Collector<? super java.util.Map.Entry<? extends K,​? extends V>,​?,​M>
      toMap​(java.util.function.BinaryOperator<V> mergeFunction, java.util.function.Supplier<M> mapSupplier)  
      java.util.stream.Stream<V> values()  
      • Methods inherited from interface java.util.stream.BaseStream

        close, isParallel, iterator, onClose, parallel, sequential, spliterator, unordered
    • Method Detail

      • of

        static <K,​V> MapStream<K,​V> of​(java.util.Map<? extends K,​? extends V> map)
      • ofNullable

        static <K,​V> MapStream<K,​V> ofNullable​(java.util.Map<? extends K,​? extends V> map)
      • of

        static <K,​V> MapStream<K,​V> of​(java.util.Collection<? extends java.util.Map.Entry<? extends K,​? extends V>> collection)
      • ofNullable

        static <K,​V> MapStream<K,​V> ofNullable​(java.util.Collection<? extends java.util.Map.Entry<? extends K,​? extends V>> collection)
      • of

        static <K,​V> MapStream<K,​V> of​(java.util.stream.Stream<? extends java.util.Map.Entry<? extends K,​? extends V>> stream)
      • ofNullable

        static <K,​V> MapStream<K,​V> ofNullable​(java.util.stream.Stream<? extends java.util.Map.Entry<? extends K,​? extends V>> stream)
      • concat

        static <K,​V> MapStream<K,​V> concat​(MapStream<? extends K,​? extends V> a,
                                                       MapStream<? extends K,​? extends V> b)
      • empty

        static <K,​V> MapStream<K,​V> empty()
      • of

        static <K,​V> MapStream<K,​V> of​(K k1,
                                                   V v1)
      • of

        static <K,​V> MapStream<K,​V> of​(K k1,
                                                   V v1,
                                                   K k2,
                                                   V v2)
      • of

        static <K,​V> MapStream<K,​V> of​(K k1,
                                                   V v1,
                                                   K k2,
                                                   V v2,
                                                   K k3,
                                                   V v3)
      • of

        static <K,​V> MapStream<K,​V> of​(K k1,
                                                   V v1,
                                                   K k2,
                                                   V v2,
                                                   K k3,
                                                   V v3,
                                                   K k4,
                                                   V v4)
      • ofEntries

        @SafeVarargs
        static <K,​V> MapStream<K,​V> ofEntries​(java.util.Map.Entry<? extends K,​? extends V>... entries)
      • ofEntries

        static <O,​K,​V> MapStream<K,​V> ofEntries​(java.util.stream.Stream<? extends O> stream,
                                                                  java.util.function.Function<? super O,​? extends java.util.Map.Entry<? extends K,​? extends V>> entryMapper)
      • entry

        static <K,​V> java.util.Map.Entry<K,​V> entry​(K key,
                                                                V value)
      • entries

        java.util.stream.Stream<java.util.Map.Entry<K,​V>> entries()
      • keys

        java.util.stream.Stream<K> keys()
      • values

        java.util.stream.Stream<V> values()
      • filter

        MapStream<K,​V> filter​(java.util.function.BiPredicate<? super K,​? super V> filter)
      • filterKey

        MapStream<K,​V> filterKey​(java.util.function.Predicate<? super K> filter)
      • filterValue

        MapStream<K,​V> filterValue​(java.util.function.Predicate<? super V> filter)
      • map

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

        <R> MapStream<R,​V> mapKey​(java.util.function.Function<? super K,​? extends R> mapper)
      • mapValue

        <S> MapStream<K,​S> mapValue​(java.util.function.Function<? super V,​? extends S> mapper)
      • mapToObj

        <O> java.util.stream.Stream<O> mapToObj​(java.util.function.BiFunction<? super K,​? super V,​? extends O> mapper)
      • mapToInt

        java.util.stream.IntStream mapToInt​(java.util.function.ToIntBiFunction<? super K,​? super V> mapper)
      • mapToLong

        java.util.stream.LongStream mapToLong​(java.util.function.ToLongBiFunction<? super K,​? super V> mapper)
      • mapToDouble

        java.util.stream.DoubleStream mapToDouble​(java.util.function.ToDoubleBiFunction<? super K,​? super V> mapper)
      • flatMap

        <R,​S> MapStream<R,​S> flatMap​(java.util.function.BiFunction<? super K,​? super V,​? extends MapStream<? extends R,​? extends S>> mapper)
      • flatMapKey

        <R> MapStream<R,​V> flatMapKey​(java.util.function.Function<? super K,​? extends java.util.stream.Stream<? extends R>> mapper)
      • flatMapValue

        <S> MapStream<K,​S> flatMapValue​(java.util.function.Function<? super V,​? extends java.util.stream.Stream<? extends S>> mapper)
      • flatMapToObj

        <O> java.util.stream.Stream<O> flatMapToObj​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.Stream<? extends O>> mapper)
      • flatMapToInt

        java.util.stream.IntStream flatMapToInt​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.IntStream> mapper)
      • flatMapToLong

        java.util.stream.LongStream flatMapToLong​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.LongStream> mapper)
      • flatMapToDouble

        java.util.stream.DoubleStream flatMapToDouble​(java.util.function.BiFunction<? super K,​? super V,​? extends java.util.stream.DoubleStream> mapper)
      • peek

        MapStream<K,​V> peek​(java.util.function.BiConsumer<? super K,​? super V> peek)
      • peekKey

        MapStream<K,​V> peekKey​(java.util.function.Consumer<? super K> peek)
      • peekValue

        MapStream<K,​V> peekValue​(java.util.function.Consumer<? super V> peek)
      • sorted

        MapStream<K,​V> sorted​(java.util.Comparator<? super java.util.Map.Entry<K,​V>> comparator)
      • sortedByKey

        MapStream<K,​V> sortedByKey​(java.util.Comparator<? super K> comparator)
      • sortedByValue

        MapStream<K,​V> sortedByValue​(java.util.Comparator<? super V> comparator)
      • count

        long count()
      • forEach

        void forEach​(java.util.function.BiConsumer<? super K,​? super V> consumer)
      • forEachOrdered

        void forEachOrdered​(java.util.function.BiConsumer<? super K,​? super V> consumer)
      • anyMatch

        boolean anyMatch​(java.util.function.BiPredicate<? super K,​? super V> predicate)
      • allMatch

        boolean allMatch​(java.util.function.BiPredicate<? super K,​? super V> predicate)
      • noneMatch

        boolean noneMatch​(java.util.function.BiPredicate<? super K,​? super V> predicate)
      • collect

        <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)
      • collect

        <R,​A> R collect​(java.util.stream.Collector<? super java.util.Map.Entry<? extends K,​? extends V>,​A,​R> collector)
      • toMap

        static <K,​V> java.util.stream.Collector<? super java.util.Map.Entry<? extends K,​? extends V>,​?,​java.util.Map<K,​V>> toMap()
      • toMap

        static <K,​V> java.util.stream.Collector<? super java.util.Map.Entry<? extends K,​? extends V>,​?,​java.util.Map<K,​V>> toMap​(java.util.function.BinaryOperator<V> mergeFunction)
      • toMap

        static <K,​V,​M extends java.util.Map<K,​V>> java.util.stream.Collector<? super java.util.Map.Entry<? extends K,​? extends V>,​?,​M> toMap​(java.util.function.BinaryOperator<V> mergeFunction,
                                                                                                                                                                                 java.util.function.Supplier<M> mapSupplier)
      • max

        java.util.Optional<java.util.Map.Entry<K,​V>> max​(java.util.Comparator<? super java.util.Map.Entry<K,​V>> comparator)
      • maxByKey

        java.util.Optional<java.util.Map.Entry<K,​V>> maxByKey​(java.util.Comparator<? super K> comparator)
      • maxByValue

        java.util.Optional<java.util.Map.Entry<K,​V>> maxByValue​(java.util.Comparator<? super V> comparator)
      • min

        java.util.Optional<java.util.Map.Entry<K,​V>> min​(java.util.Comparator<? super java.util.Map.Entry<K,​V>> comparator)
      • minByKey

        java.util.Optional<java.util.Map.Entry<K,​V>> minByKey​(java.util.Comparator<? super K> comparator)
      • minByValue

        java.util.Optional<java.util.Map.Entry<K,​V>> minByValue​(java.util.Comparator<? super V> comparator)
      • findAny

        java.util.Optional<java.util.Map.Entry<K,​V>> findAny()
      • findFirst

        java.util.Optional<java.util.Map.Entry<K,​V>> findFirst()
      • toArray

        java.util.Map.Entry<K,​V>[] toArray()
      • takeWhile

        MapStream<K,​V> takeWhile​(java.util.function.BiPredicate<? super K,​? super V> predicate)
      • takeWhileKey

        MapStream<K,​V> takeWhileKey​(java.util.function.Predicate<? super K> predicate)
      • takeWhileValue

        MapStream<K,​V> takeWhileValue​(java.util.function.Predicate<? super V> predicate)
      • dropWhile

        MapStream<K,​V> dropWhile​(java.util.function.BiPredicate<? super K,​? super V> predicate)
      • dropWhileKey

        MapStream<K,​V> dropWhileKey​(java.util.function.Predicate<? super K> predicate)
      • dropWhileValue

        MapStream<K,​V> dropWhileValue​(java.util.function.Predicate<? super V> predicate)