Class HashArgsFunction
java.lang.Object
com.github.basking2.sdsai.itrex.functions.function.HashArgsFunction
- All Implemented Interfaces:
FunctionInterface<Iterator<Object>>
,BiFunction<Iterator<?>,
EvaluationContext, Iterator<Object>>
Put all strings of the format name:value into the environment as name = value.
This allows
[get name]
to return the value
.
Unconsumed arguments are returned in an iterator _and_ set as the current arguments in the environment.
Subsequent calls to [arg] or [args] will get the filtered list of arguments.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Iterator<?> iterator, EvaluationContext evaluationContext) 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
-
HashArgsFunction
public HashArgsFunction()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceBiFunction<Iterator<?>,
EvaluationContext, Iterator<Object>>
-