com.github.basking2.sdsai.itrex.functions.bool.NotFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdsai-itrex Show documentation
Show all versions of sdsai-itrex Show documentation
An S-Expression inspiried library focused on iterators.
package com.github.basking2.sdsai.itrex.functions.bool;
/**
* Return the boolean value of the last argument to this function.
*/
public class NotFunction extends AbstractBooleanFunction {
public NotFunction() {
super(false);
}
@Override
public Result booleanOperation(Boolean b1, Boolean b2) {
return new Result(true, !b2);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy