Package aQute.bnd.stream
Interface MapStream<K,V>
- All Superinterfaces:
AutoCloseable
,BaseStream<Map.Entry<K,
V>, MapStream<K, V>>
- All Known Implementing Classes:
EntryPipeline
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allMatch
(BiPredicate<? super K, ? super V> predicate) boolean
anyMatch
(BiPredicate<? super K, ? super V> predicate) <R> R
collect
(Supplier<R> supplier, BiConsumer<R, ? super Map.Entry<? extends K, ? extends V>> accumulator, BiConsumer<R, R> combiner) <R,
A> R static <K,
V> MapStream<K, V> long
count()
distinct()
dropWhile
(BiPredicate<? super K, ? super V> predicate) dropWhileKey
(Predicate<? super K> predicate) dropWhileValue
(Predicate<? super V> predicate) static <K,
V> MapStream<K, V> empty()
entries()
static <K,
V> Map.Entry<K, V> entry
(K key, V value) filter
(BiPredicate<? super K, ? super V> filter) filterValue
(Predicate<? super V> filter) findAny()
<R,
S> MapStream<R, S> flatMap
(BiFunction<? super K, ? super V, ? extends MapStream<? extends R, ? extends S>> mapper) flatMapKey
(Function<? super K, ? extends Stream<? extends R>> mapper) flatMapToDouble
(BiFunction<? super K, ? super V, ? extends DoubleStream> mapper) flatMapToInt
(BiFunction<? super K, ? super V, ? extends IntStream> mapper) flatMapToLong
(BiFunction<? super K, ? super V, ? extends LongStream> mapper) <O> Stream<O>
flatMapToObj
(BiFunction<? super K, ? super V, ? extends Stream<? extends O>> mapper) flatMapValue
(Function<? super V, ? extends Stream<? extends S>> mapper) void
forEach
(BiConsumer<? super K, ? super V> consumer) void
forEachOrdered
(BiConsumer<? super K, ? super V> consumer) keys()
limit
(long maxSize) <R,
S> MapStream<R, S> map
(BiFunction<? super K, ? super V, ? extends Map.Entry<? extends R, ? extends S>> mapper) mapToDouble
(ToDoubleBiFunction<? super K, ? super V> mapper) mapToInt
(ToIntBiFunction<? super K, ? super V> mapper) mapToLong
(ToLongBiFunction<? super K, ? super V> mapper) <O> Stream<O>
mapToObj
(BiFunction<? super K, ? super V, ? extends O> mapper) max
(Comparator<? super Map.Entry<K, V>> comparator) maxByKey
(Comparator<? super K> comparator) maxByValue
(Comparator<? super V> comparator) min
(Comparator<? super Map.Entry<K, V>> comparator) minByKey
(Comparator<? super K> comparator) minByValue
(Comparator<? super V> comparator) boolean
noneMatch
(BiPredicate<? super K, ? super V> predicate) static <K,
V> MapStream<K, V> of
(Collection<? extends Map.Entry<? extends K, ? extends V>> collection) static <K,
V> MapStream<K, V> static <K,
V> MapStream<K, V> 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> static <O,
K, V> MapStream<K, V> ofEntries
(Stream<? extends O> stream, Function<? super O, ? extends Map.Entry<? extends K, ? extends V>> entryMapper) static <K,
V> MapStream<K, V> ofNullable
(Collection<? extends Map.Entry<? extends K, ? extends V>> collection) static <K,
V> MapStream<K, V> ofNullable
(Map<? extends K, ? extends V> map) static <K,
V> MapStream<K, V> ofNullable
(Stream<? extends Map.Entry<? extends K, ? extends V>> stream) peek
(BiConsumer<? super K, ? super V> peek) skip
(long n) sorted()
sorted
(Comparator<? super Map.Entry<K, V>> comparator) sortedByKey
(Comparator<? super K> comparator) sortedByValue
(Comparator<? super V> comparator) takeWhile
(BiPredicate<? super K, ? super V> predicate) takeWhileKey
(Predicate<? super K> predicate) takeWhileValue
(Predicate<? super V> predicate) toArray()
toMap()
toMap
(BinaryOperator<V> mergeFunction) toMap
(BinaryOperator<V> mergeFunction, Supplier<M> mapSupplier) values()
Methods inherited from interface java.util.stream.BaseStream
close, isParallel, iterator, onClose, parallel, sequential, spliterator, unordered
-
Method Details
-
of
-
ofNullable
-
of
static <K,V> MapStream<K,V> of(Collection<? extends Map.Entry<? extends K, ? extends V>> collection) -
ofNullable
static <K,V> MapStream<K,V> ofNullable(Collection<? extends Map.Entry<? extends K, ? extends V>> collection) -
of
-
ofNullable
-
concat
-
empty
-
of
-
of
-
of
-
of
-
ofEntries
-
ofEntries
-
entry
-
entries
-
keys
-
values
-
distinct
-
filter
-
filterKey
-
filterValue
-
map
<R,S> MapStream<R,S> map(BiFunction<? super K, ? super V, ? extends Map.Entry<? extends R, ? extends S>> mapper) -
mapKey
-
mapValue
-
mapToObj
-
mapToInt
-
mapToLong
-
mapToDouble
-
flatMap
<R,S> MapStream<R,S> flatMap(BiFunction<? super K, ? super V, ? extends MapStream<? extends R, ? extends S>> mapper) -
flatMapKey
-
flatMapValue
-
flatMapToObj
-
flatMapToInt
-
flatMapToLong
-
flatMapToDouble
-
peek
-
peekKey
-
peekValue
-
sorted
-
sorted
-
sortedByKey
-
sortedByKey
-
sortedByValue
-
sortedByValue
-
limit
-
skip
-
count
long count() -
forEach
-
forEachOrdered
-
anyMatch
-
allMatch
-
noneMatch
-
collect
<R> R collect(Supplier<R> supplier, BiConsumer<R, ? super Map.Entry<? extends K, ? extends V>> accumulator, BiConsumer<R, R> combiner) -
collect
-
toMap
-
toMap
static <K,V> Collector<? super Map.Entry<? extends K,? extends V>, toMap?, Map<K, V>> (BinaryOperator<V> mergeFunction) -
toMap
static <K,V, Collector<? super Map.Entry<? extends K,M extends Map<K, V>> ? extends V>, toMap?, M> (BinaryOperator<V> mergeFunction, Supplier<M> mapSupplier) -
max
-
maxByKey
-
maxByValue
-
min
-
minByKey
-
minByValue
-
findAny
-
findFirst
-
toArray
-
takeWhile
-
takeWhileKey
-
takeWhileValue
-
dropWhile
-
dropWhileKey
-
dropWhileValue
-