Class MapFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.AbstractFunction1<FunctionInterface<Object>,Iterator<Object>>
com.github.basking2.sdsai.itrex.functions.functional.MapFunction
- All Implemented Interfaces:
FunctionInterface<Iterator<Object>>
,BiFunction<Iterator<?>,
EvaluationContext, Iterator<Object>>
Map a function across all subsequent arguments.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyImpl
(FunctionInterface<Object> function, Iterator<?> rest, EvaluationContext evaluationContext) Overriders of this class should implement this.Methods inherited from class com.github.basking2.sdsai.itrex.functions.AbstractFunction1
apply
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
MapFunction
public MapFunction()
-
-
Method Details
-
applyImpl
protected Iterator<Object> applyImpl(FunctionInterface<Object> function, Iterator<?> rest, EvaluationContext evaluationContext) Description copied from class:AbstractFunction1
Overriders of this class should implement this.- Specified by:
applyImpl
in classAbstractFunction1<FunctionInterface<Object>,
Iterator<Object>> - Parameters:
function
- The desired parameter.rest
- Any unused arguments.evaluationContext
- The evaluation context.- Returns:
- The produced object.
-