net.sf.staccatocommons.collections.stream
Interface Stream.DeconsApplicable<A,B>

Type Parameters:
A - input stream type
B - output stream type
All Superinterfaces:
Applicable2<A,Stream<A>,Stream<B>>, Stream.EmptyApplicable<Stream<B>>
All Known Implementing Classes:
AbstractDeconsApplicable
Enclosing interface:
Stream<A>

public static interface Stream.DeconsApplicable<A,B>
extends Applicable2<A,Stream<A>,Stream<B>>, Stream.EmptyApplicable<Stream<B>>

An Applicable2 that can transform a Stream by deconstructing it into head and tail, or into an empty stream.

Author:
flbulgarelli

Method Summary
 Stream<B> apply(A head, Stream<A> tail)
          Applies this transformation to a non empty Stream splitted into tail and head.
 
Methods inherited from interface net.sf.staccatocommons.collections.stream.Stream.EmptyApplicable
emptyApply
 

Method Detail

apply

Stream<B> apply(A head,
                Stream<A> tail)
Applies this transformation to a non empty Stream splitted into tail and head. 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<A,Stream<A>,Stream<B>>


Get Staccatocommons at SourceForge.net. Fast, secure and Free Open Source software downloads