|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use EmptySourceException | |
|---|---|
| net.sf.staccatocommons.collections.stream | This package contains the interfaces that define a Stream,
a lazy, rich, Iterable, an abstract implementation of it, and
the Streams hub with
class methods for creating simple Streams |
| Uses of EmptySourceException in net.sf.staccatocommons.collections.stream |
|---|
| Methods in net.sf.staccatocommons.collections.stream that throw EmptySourceException | ||
|---|---|---|
A |
Stream.any()
Returns the Stream.head() of this Stream
The different between Stream.head() and Stream.any() is strictly semantic:
use this message instead of Stream.head() whenever the code needs an
unspecified element, rather than the first element of the stream. |
|
Tuple2<A,Stream<A>> |
Stream.decons()
Answers this stream split into head and tail. |
|
Tuple2<Thunk<A>,Stream<A>> |
Stream.delayedDecons()
Answers this non-empty stream split into a head thunk and tail. |
|
A |
Stream.find(Evaluable<? super A> predicate)
Looks for a element that satisfies the given Evaluable. |
|
A |
Stream.first()
Answers the first element. |
|
A |
Stream.head()
Answers the head of the Stream, which is the first element of the
stream. |
|
A |
Stream.last()
Answers the last element of this stream. |
|
A |
Stream.maximum()
Answers the maximum element of the stream, using elements natural order. |
|
A |
Stream.maximumBy(Comparator<? super A> comparator)
Answers the maximum element of the stream, using the given comparator to compare elements. |
|
|
Stream.maximumOn(Applicable<? super A,B> function)
Answers the maximum element of the stream, using the given Compare.on(function) to compare elements. |
|
A |
Stream.minimum()
Answers the minimum element of the stream, using elements natural order. |
|
A |
Stream.minimumBy(Comparator<? super A> comparator)
Answers the min element of the stream, using the given comparator to compare elements. |
|
|
Stream.minimumOn(Applicable<? super A,B> function)
Answers the minimum element of the stream, using the given Compare.on(function) to compare elements. |
|
A |
Stream.reduce(Applicable2<? super A,? super A,? extends A> function)
(Left)folds the tail of this Stream using the first element of the
stream as initial value, producing a single aggregated result from all the
Stream elements. |
|
Stream<A> |
Stream.tail()
Answers the tail of the Stream |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||