| Modifier and Type | Method and Description |
|---|---|
static IntStream |
reverseRange(int from,
int to)
Returns a sequential reverse-ordered
IntStream from from (inclusive) to to (exclusive) by
an incremental step of 1. |
static IntStream |
reverseRangeClosed(int from,
int to)
Returns a sequential reverse-ordered
IntStream from from (inclusive) to to (inclusive) by
an incremental step of 1. |
static DoubleStream |
reverseStream(double[] array)
Returns a reversed stream of the array values.
|
static DoubleStream |
reverseStream(double[] array,
int startInclusive,
int endInclusive)
Returns a reversed stream of the array values.
|
static IntStream |
reverseStream(int[] array)
Returns a reversed stream of the array values.
|
static IntStream |
reverseStream(int[] array,
int startInclusive,
int endInclusive)
Returns a reversed stream of the array values.
|
static LongStream |
reverseStream(long[] array)
Returns a reversed stream of the array values.
|
static LongStream |
reverseStream(long[] array,
int startInclusive,
int endInclusive)
Returns a reversed stream of the array values.
|
static <T> Stream<T> |
reverseStream(T[] array)
Returns a reversed stream of the array values.
|
static <T> Stream<T> |
reverseStream(T[] array,
int startInclusive,
int endInclusive)
Returns a reversed stream of the array values.
|
static <T> Stream<T> |
stream(Collection<T> collection)
Factory function for creating a
Stream from a Collection. |
static DoubleStream |
stream(double[] array)
Factory function for creating a
Stream from an array. |
static <T> Stream<T> |
stream(Enumeration<T> enumeration)
Factory function for creating a
Stream from an Enumeration. |
static IntStream |
stream(int[] array)
Factory function for creating a
Stream from an array. |
static <T> Stream<T> |
stream(Iterable<T> iterable)
Factory function for creating a
Stream from an Iterable. |
static <T> Stream<T> |
stream(Iterator<T> iterator)
Factory function for creating a
Stream from an Iterator. |
static LongStream |
stream(long[] array)
Factory function for creating a
Stream from an array. |
static <T> Stream<T> |
stream(T[] array)
Factory function for creating a
Stream from an array. |
static <T> BinaryOperator<T> |
throwingMerger()
Creates a
BinaryOperator that throws an IllegalStateException if invoked. |
static <T> BinaryOperator<T> |
throwingMerger(BiFunction<T,T,? extends RuntimeException> exceptionSupplier)
Creates a
BinaryOperator that throws an exception if invoked. |
static <T> BinaryOperator<T> |
throwingMerger(Supplier<? extends RuntimeException> exceptionSupplier)
Creates a
BinaryOperator that throws an exception if invoked. |
public static IntStream reverseRangeClosed(int from, int to)
IntStream from from (inclusive) to to (inclusive) by
an incremental step of 1.from - the inclusive lower boundto - the inclusive upper boundIntStream.range(int, int)public static IntStream reverseRange(int from, int to)
IntStream from from (inclusive) to to (exclusive) by
an incremental step of 1.from - the inclusive lower boundto - the exclusive upper boundIntStream.range(int, int)public static <T> Stream<T> reverseStream(T[] array, int startInclusive, int endInclusive)
T - the element type of the streamarray - the arraystartInclusive - the lowest index (i.e. the last element to return)endInclusive - index immediately past the highest index (i.e. the index after the first returned valuepublic static LongStream reverseStream(long[] array, int startInclusive, int endInclusive)
array - the arraystartInclusive - the lowest index (i.e. the last element to return)endInclusive - index immediately past the highest index (i.e. the index after the first returned valuepublic static IntStream reverseStream(int[] array, int startInclusive, int endInclusive)
array - the arraystartInclusive - the lowest index (i.e. the last element to return)endInclusive - index immediately past the highest index (i.e. the index after the first returned valuepublic static DoubleStream reverseStream(double[] array, int startInclusive, int endInclusive)
array - the arraystartInclusive - the lowest index (i.e. the last element to return)endInclusive - index immediately past the highest index (i.e. the index after the first returned valuepublic static <T> Stream<T> reverseStream(T[] array)
T - the element type of the streamarray - the arraypublic static LongStream reverseStream(long[] array)
array - the arraypublic static IntStream reverseStream(int[] array)
array - the arraypublic static DoubleStream reverseStream(double[] array)
array - the arraypublic static <T> Stream<T> stream(Enumeration<T> enumeration)
Stream from an Enumeration.T - the element typeenumeration - the enumerationpublic static <T> Stream<T> stream(Iterator<T> iterator)
Stream from an Iterator.T - the element typeiterator - the iteratorpublic static <T> Stream<T> stream(Iterable<T> iterable)
Stream from an Iterable.T - the element typeiterable - the iterablepublic static <T> Stream<T> stream(T[] array)
Stream from an array.T - the element typearray - the arraypublic static IntStream stream(int[] array)
Stream from an array.array - the arraypublic static LongStream stream(long[] array)
Stream from an array.array - the arraypublic static DoubleStream stream(double[] array)
Stream from an array.array - the arraypublic static <T> Stream<T> stream(Collection<T> collection)
Stream from a Collection.T - the element typecollection - the collectionpublic static <T> BinaryOperator<T> throwingMerger(Supplier<? extends RuntimeException> exceptionSupplier)
BinaryOperator that throws an exception if invoked.T - the operators input and result typeexceptionSupplier - the exception factoryCollectors.toMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator),
Collectors.toMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator, java.util.function.Supplier),
Collectors.toConcurrentMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator),
Collectors.toConcurrentMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator, java.util.function.Supplier)public static <T> BinaryOperator<T> throwingMerger()
BinaryOperator that throws an IllegalStateException if invoked.T - the operators input and result typeCollectors.toMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator),
Collectors.toMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator, java.util.function.Supplier),
Collectors.toConcurrentMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator),
Collectors.toConcurrentMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator, java.util.function.Supplier)public static <T> BinaryOperator<T> throwingMerger(BiFunction<T,T,? extends RuntimeException> exceptionSupplier)
BinaryOperator that throws an exception if invoked.T - the operators input and result typeexceptionSupplier - the exception factoryCollectors.toMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator),
Collectors.toMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator, java.util.function.Supplier),
Collectors.toConcurrentMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator),
Collectors.toConcurrentMap(java.util.function.Function, java.util.function.Function,
java.util.function.BinaryOperator, java.util.function.Supplier)Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.