resolved merge conflict
This commit is contained in:
commit
b6e8875cd7
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,3 +18,4 @@ broker/core/module/MOD-INF/classes/
|
||||
broker/core/WEB-INF/lib/
|
||||
broker/core/data/
|
||||
broker/core/test-output/
|
||||
tmp/
|
@ -41,7 +41,7 @@ public class Xor implements Function {
|
||||
public Object call(Properties bindings, Object[] args) {
|
||||
if (args.length == 2 &&
|
||||
args[0] != null && args[0] instanceof Boolean &&
|
||||
args[1] != null && args[0] instanceof Boolean) {
|
||||
args[1] != null && args[1] instanceof Boolean) {
|
||||
boolean o1 = ((Boolean) args[0]).booleanValue();
|
||||
boolean o2 = ((Boolean) args[1]).booleanValue();
|
||||
return o1 != o2;
|
||||
|
@ -56,6 +56,7 @@ import com.google.refine.expr.functions.arrays.Uniques;
|
||||
import com.google.refine.expr.functions.booleans.And;
|
||||
import com.google.refine.expr.functions.booleans.Not;
|
||||
import com.google.refine.expr.functions.booleans.Or;
|
||||
import com.google.refine.expr.functions.booleans.Xor;
|
||||
import com.google.refine.expr.functions.date.DatePart;
|
||||
import com.google.refine.expr.functions.date.Inc;
|
||||
import com.google.refine.expr.functions.date.Now;
|
||||
@ -284,6 +285,7 @@ public class ControlFunctionRegistry {
|
||||
registerFunction("and", new And());
|
||||
registerFunction("or", new Or());
|
||||
registerFunction("not", new Not());
|
||||
registerFunction("xor", new Xor());
|
||||
|
||||
registerFunction("cross", new Cross());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user