net.sf.staccatocommons.collections.stream
Interface Stream.DelayedDeconsApplicable<A,B>
- Type Parameters:
A - input stream typeB - output stream type
- All Superinterfaces:
- Applicable2<Thunk<A>,Stream<A>,Stream<B>>, Stream.EmptyApplicable<Stream<B>>
- All Known Implementing Classes:
- AbstractDelayedDeconsApplicable
- Enclosing interface:
- Stream<A>
public static interface Stream.DelayedDeconsApplicable<A,B>
- extends Applicable2<Thunk<A>,Stream<A>,Stream<B>>, Stream.EmptyApplicable<Stream<B>>
An Applicable2 that can transform a Stream by
deconstructing it into head thunk and tail, or into an empty stream.
- Author:
- flbulgarelli
|
Method Summary |
Stream<B> |
apply(Thunk<A> head,
Stream<A> tail)
Applies this transformation to a non empty Stream splitted into tail and
head's thunk. |
apply
Stream<B> apply(Thunk<A> head,
Stream<A> tail)
- Applies this transformation to a non empty Stream splitted into tail and
head's thunk.
Independently of the original stream source, the tail Stream is always
non-repeatable.
Streams will send this message when evaluating
Stream.transform(DeconsApplicable)
- Specified by:
apply in interface Applicable2<Thunk<A>,Stream<A>,Stream<B>>