All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.basking2.sdsai.itrex.functions.function.HasArgFunction Maven / Gradle / Ivy

There is a newer version: 1.1.23
Show newest version
package com.github.basking2.sdsai.itrex.functions.function;

import com.github.basking2.sdsai.itrex.EvaluationContext;
import com.github.basking2.sdsai.itrex.functions.FunctionInterface;

import java.util.Iterator;

/**
 * Return True or False if the given {@link EvaluationContext} has more arguments or not.
 */
public class HasArgFunction implements FunctionInterface {
    @Override
    public Boolean apply(Iterator iterator, EvaluationContext evaluationContext) {
        return evaluationContext.getArguments().hasNext();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy