Package aQute.bnd.stream
Class EntryPipeline<K,V>
java.lang.Object
aQute.bnd.stream.EntryPipeline<K,V>
- All Implemented Interfaces:
MapStream<K,,V> AutoCloseable,BaseStream<Map.Entry<K,V>, MapStream<K, V>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallMatch(BiPredicate<? super K, ? super V> predicate) booleananyMatch(BiPredicate<? super K, ? super V> predicate) voidclose()<R> Rcollect(Supplier<R> supplier, BiConsumer<R, ? super Map.Entry<? extends K, ? extends V>> accumulator, BiConsumer<R, R> combiner) <R,A> R private static <K,V> Comparator<Map.Entry<K, V>> private static <K,V> Comparator<Map.Entry<K, V>> private static <K,V> Comparator<Map.Entry<K, V>> longcount()distinct()dropWhile(BiPredicate<? super K, ? super V> predicate) dropWhileKey(Predicate<? super K> predicate) dropWhileValue(Predicate<? super V> predicate) entries()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) <R> Stream<R>flatMapToObj(BiFunction<? super K, ? super V, ? extends Stream<? extends R>> mapper) flatMapValue(Function<? super V, ? extends Stream<? extends S>> mapper) voidforEach(BiConsumer<? super K, ? super V> consumer) voidforEachOrdered(BiConsumer<? super K, ? super V> consumer) booleaniterator()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) <R> Stream<R>mapToObj(BiFunction<? super K, ? super V, ? extends R> 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) booleannoneMatch(BiPredicate<? super K, ? super V> predicate) parallel()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()values()
-
Field Details
-
stream
-
-
Constructor Details
-
EntryPipeline
-
-
Method Details
-
entries
-
keys
-
values
-
iterator
- Specified by:
iteratorin interfaceBaseStream<K,V>
-
spliterator
- Specified by:
spliteratorin interfaceBaseStream<K,V>
-
isParallel
public boolean isParallel()- Specified by:
isParallelin interfaceBaseStream<K,V>
-
sequential
- Specified by:
sequentialin interfaceBaseStream<K,V>
-
parallel
- Specified by:
parallelin interfaceBaseStream<K,V>
-
unordered
- Specified by:
unorderedin interfaceBaseStream<K,V>
-
onClose
- Specified by:
onClosein interfaceBaseStream<K,V>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBaseStream<K,V>
-
distinct
-
filter
-
filterKey
-
filterValue
- Specified by:
filterValuein interfaceMapStream<K,V>
-
map
public <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
- Specified by:
mapToDoublein interfaceMapStream<K,V>
-
flatMap
public <R,S> MapStream<R,S> flatMap(BiFunction<? super K, ? super V, ? extends MapStream<? extends R, ? extends S>> mapper) -
flatMapKey
- Specified by:
flatMapKeyin interfaceMapStream<K,V>
-
flatMapValue
- Specified by:
flatMapValuein interfaceMapStream<K,V>
-
flatMapToObj
public <R> Stream<R> flatMapToObj(BiFunction<? super K, ? super V, ? extends Stream<? extends R>> mapper) - Specified by:
flatMapToObjin interfaceMapStream<K,V>
-
flatMapToInt
- Specified by:
flatMapToIntin interfaceMapStream<K,V>
-
flatMapToLong
- Specified by:
flatMapToLongin interfaceMapStream<K,V>
-
flatMapToDouble
- Specified by:
flatMapToDoublein interfaceMapStream<K,V>
-
peek
-
peekKey
-
peekValue
-
comparingByKey
-
comparingByValue
-
comparing
-
sorted
-
sorted
-
sortedByKey
- Specified by:
sortedByKeyin interfaceMapStream<K,V>
-
sortedByKey
- Specified by:
sortedByKeyin interfaceMapStream<K,V>
-
sortedByValue
- Specified by:
sortedByValuein interfaceMapStream<K,V>
-
sortedByValue
- Specified by:
sortedByValuein interfaceMapStream<K,V>
-
limit
-
skip
-
forEach
-
forEachOrdered
- Specified by:
forEachOrderedin interfaceMapStream<K,V>
-
count
public long count() -
anyMatch
-
allMatch
-
noneMatch
-
collect
-
collect
public <R> R collect(Supplier<R> supplier, BiConsumer<R, ? super Map.Entry<? extends K, ? extends V>> accumulator, BiConsumer<R, R> combiner) -
max
-
maxByKey
-
maxByValue
- Specified by:
maxByValuein interfaceMapStream<K,V>
-
min
-
minByKey
-
minByValue
- Specified by:
minByValuein interfaceMapStream<K,V>
-
findAny
-
findFirst
-
toArray
-
takeWhile
-
takeWhileKey
- Specified by:
takeWhileKeyin interfaceMapStream<K,V>
-
takeWhileValue
- Specified by:
takeWhileValuein interfaceMapStream<K,V>
-
dropWhile
-
dropWhileKey
- Specified by:
dropWhileKeyin interfaceMapStream<K,V>
-
dropWhileValue
- Specified by:
dropWhileValuein interfaceMapStream<K,V>
-