java.lang.Object | |
↳ | com.atlassian.bitbucket.util.MoreStreams |
Additional utilities for creating Stream streams.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the Stream as an Iterable.
| |||||||||||
Converts an
Enumeration to a Stream . | |||||||||||
Converts an
Iterable to a Stream . | |||||||||||
Converts an
Optional to a single-element or empty Stream . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the Stream as an Iterable.
Note: the returned Iterable can only be iterated once.
stream | the stream |
---|
Converts an Enumeration
to a Stream
.
enumeration | the Enumeration to stream |
---|
Stream
over the provided enumeration
NullPointerException | if the provided enumeration is null |
---|
Converts an Iterable
to a Stream
.
iterable | the Iterable to stream |
---|
Stream
over the provided iterable
NullPointerException | if the provided iterable is null
|
---|
Converts an Optional
to a single-element or empty Stream
.
optional | the Optional to stream |
---|
Stream
if the Optional
is present; otherwise an empty Stream
NullPointerException | if the provided optional is null
|
---|