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

de.janno.evaluator.dice.function.IfEqual Maven / Gradle / Ivy

The newest version!
package de.janno.evaluator.dice.function;

import de.janno.evaluator.dice.ExpressionPosition;
import de.janno.evaluator.dice.Roll;

public class IfEqual extends AbstractIf {
    public IfEqual(int maxNumberOfElements, boolean keepChildrenRolls) {
        super("ifE", maxNumberOfElements, keepChildrenRolls);
    }

    @Override
    protected boolean compare(Roll input, int inputPosition, Roll compareTo, int compareToPosition, ExpressionPosition expressionPosition) {
        return input.equalForValueAndTag(compareTo);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy