Java com.google.common.collect Streams fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.collect Streams fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.collect Streams.

The text is from its open source code.

Method

java.util.OptionalfindLast(Stream stream)
Returns the last element of the specified stream, or java.util.Optional#empty if the stream is empty.
OptionalIntfindLast(IntStream stream)
Returns the last element of the specified stream, or OptionalInt#empty if the stream is empty.
OptionalLongfindLast(LongStream stream)
Returns the last element of the specified stream, or OptionalLong#empty if the stream is empty.
OptionalDoublefindLast(DoubleStream stream)
Returns the last element of the specified stream, or OptionalDouble#empty if the stream is empty.
StreammapWithIndex(Stream stream, FunctionWithIndex function)
Returns a stream consisting of the results of applying the given function to the elements of stream and their indices in the stream.
StreammapWithIndex(IntStream stream, IntFunctionWithIndex function)
Returns a stream consisting of the results of applying the given function to the elements of stream and their indexes in the stream.
StreammapWithIndex(LongStream stream, LongFunctionWithIndex function)
Returns a stream consisting of the results of applying the given function to the elements of stream and their indexes in the stream.
StreammapWithIndex(DoubleStream stream, DoubleFunctionWithIndex function)
Returns a stream consisting of the results of applying the given function to the elements of stream and their indexes in the stream.
Streamstream(Iterable iterable)
Returns a sequential Stream of the contents of iterable , delegating to Collection#stream if possible.
Streamstream(Collection collection)
Returns Collection#stream .
Streamstream(Iterator iterator)
Returns a sequential Stream of the remaining contents of iterator .
Streamstream(com.google.common.base.Optional optional)
If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream.
Streamstream(java.util.Optional optional)
If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream.
IntStreamstream(OptionalInt optional)
If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream.
LongStreamstream(OptionalLong optional)
If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream.
DoubleStreamstream(OptionalDouble optional)
If a value is present in optional , returns a stream containing only that element, otherwise returns an empty stream.
Streamzip(Stream streamA, Stream streamB, BiFunction function)
Returns a stream in which each element is the result of passing the corresponding element of each of streamA and streamB to function .