Example usage for Java com.google.common.collect Streams fields, constructors, methods, implement or subclass
The text is from its open source code.
java.util.Optional | findLast(Stream Returns the last element of the specified stream, or java.util.Optional#empty if the stream is empty. |
OptionalInt | findLast(IntStream stream) Returns the last element of the specified stream, or OptionalInt#empty if the stream is empty. |
OptionalLong | findLast(LongStream stream) Returns the last element of the specified stream, or OptionalLong#empty if the stream is empty. |
OptionalDouble | findLast(DoubleStream stream) Returns the last element of the specified stream, or OptionalDouble#empty if the stream is empty. |
Stream | mapWithIndex(Stream Returns a stream consisting of the results of applying the given function to the elements of stream and their indices in the stream. |
Stream | mapWithIndex(IntStream stream, IntFunctionWithIndex Returns a stream consisting of the results of applying the given function to the elements of stream and their indexes in the stream. |
Stream | mapWithIndex(LongStream stream, LongFunctionWithIndex Returns a stream consisting of the results of applying the given function to the elements of stream and their indexes in the stream. |
Stream | mapWithIndex(DoubleStream stream, DoubleFunctionWithIndex Returns a stream consisting of the results of applying the given function to the elements of stream and their indexes in the stream. |
Stream | stream(Iterable Returns a sequential Stream of the contents of iterable , delegating to Collection#stream if possible. |
Stream | stream(Collection Returns Collection#stream . |
Stream | stream(Iterator Returns a sequential Stream of the remaining contents of iterator . |
Stream | stream(com.google.common.base.Optional If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream. |
Stream | stream(java.util.Optional If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream. |
IntStream | stream(OptionalInt optional) If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream. |
LongStream | stream(OptionalLong optional) If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream. |
DoubleStream | stream(OptionalDouble optional) If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream. |
Stream | zip(Stream streamA, Stream streamB, BiFunction super A, ? super B, R> function) Returns a stream in which each element is the result of passing the corresponding element of each of streamA and streamB to function . |