AIN
- The first part of the input pairBIN
- The second part of the input pairAOUT
- The first part of the output pairBOUT
- The second part of the output pairpublic class CombinedStreamFunction<AIN,AOUT,BIN,BOUT> extends Object implements Function<IndependentPair<AIN,BIN>,IndependentPair<AOUT,BOUT>>
IndependentPair
instances)
apply two functions (one to each component of the pair) to produce a stream
of output pairs.Constructor and Description |
---|
CombinedStreamFunction(Function<AIN,AOUT> fA,
Function<BIN,BOUT> fB)
Construct with the given functions to apply to the first and second
elements of the pairs in the input stream respectively.
|
Modifier and Type | Method and Description |
---|---|
IndependentPair<AOUT,BOUT> |
apply(IndependentPair<AIN,BIN> in)
Apply the function to the input argument and return the result.
|
public CombinedStreamFunction(Function<AIN,AOUT> fA, Function<BIN,BOUT> fB)
fA
- function to apply to the first elementfB
- function to apply to the second elementpublic IndependentPair<AOUT,BOUT> apply(IndependentPair<AIN,BIN> in)
Function
apply
in interface Function<IndependentPair<AIN,BIN>,IndependentPair<AOUT,BOUT>>
in
- the input object