Class AbstractFunction1<T,R>
java.lang.Object
com.github.basking2.sdsai.itrex.functions.AbstractFunction1<T,R>
- All Implemented Interfaces:
FunctionInterface<R>
,BiFunction<Iterator<?>,
EvaluationContext, R>
- Direct Known Subclasses:
CallFlattenedFunction
,ClassOfFunction
,GetFunction
,JavaNewFunction
,MapFunction
A function that takes 1 argument of a given type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Iterator<?> iterator, EvaluationContext evaluationContext) protected abstract R
applyImpl
(T t, Iterator<?> rest, EvaluationContext context) Overriders of this class should implement this.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
-
AbstractFunction1
public AbstractFunction1()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<Iterator<?>,
EvaluationContext, R>
-
applyImpl
Overriders of this class should implement this.- Parameters:
t
- The desired parameter.rest
- Any unused arguments.context
- The evaluation context.- Returns:
- The produced object.
-