dizpers

XOR override for JexlEngine

Nov 28th, 2011
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. public class FullMath extends org.apache.commons.jexl2.JexlArithmetic {
  2.     public FullMath(boolean lenient) {
  3.         super(lenient);
  4.     }
  5.  
  6.     public Object bitwiseXor(Object left, Object right) {
  7.         double l = toDouble(left);
  8.         double r = toDouble(right);
  9.         return Math.pow(l, r);
  10.     }
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment