List of usage examples for java.lang Byte byteValue
@HotSpotIntrinsicCandidate public byte byteValue()
From source file:jp.co.acroquest.endosnipe.report.converter.util.calc.ByteCalculator.java
public Object add(Object obj1, Object obj2) { Byte byteData1 = (Byte) obj1; Byte byteData2 = (Byte) obj2; return (Object) (new Byte((byte) (byteData1.byteValue() + byteData2.byteValue()))); }
From source file:jp.co.acroquest.endosnipe.report.converter.util.calc.ByteCalculator.java
public Object div(Object obj1, Object obj2) { Byte byteData1 = (Byte) obj1; Byte byteData2 = (Byte) obj2; return (Object) (new Byte((byte) (byteData1.byteValue() / byteData2.byteValue()))); }
From source file:jp.co.acroquest.endosnipe.report.converter.util.calc.ByteCalculator.java
public Object mul(Object obj1, Object obj2) { Byte byteData1 = (Byte) obj1; Byte byteData2 = (Byte) obj2; return (Object) (new Byte((byte) (byteData1.byteValue() * byteData2.byteValue()))); }
From source file:jp.co.acroquest.endosnipe.report.converter.util.calc.ByteCalculator.java
public Object sub(Object obj1, Object obj2) { Byte byteData1 = (Byte) obj1; Byte byteData2 = (Byte) obj2; return (Object) (new Byte((byte) (byteData1.byteValue() - byteData2.byteValue()))); }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPBitAnd.java
public Byte evaluate(Byte a, Byte b) { if ((a == null) || (b == null)) return null; return Byte.valueOf((byte) (a.byteValue() & b.byteValue())); }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPBitOr.java
public Byte evaluate(Byte a, Byte b) { if ((a == null) || (b == null)) return null; return Byte.valueOf((byte) (a.byteValue() | b.byteValue())); }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPBitXor.java
public Byte evaluate(Byte a, Byte b) { if ((a == null) || (b == null)) return null; return Byte.valueOf((byte) (a.byteValue() ^ b.byteValue())); }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPEqualOrGreaterThan.java
public Boolean evaluate(Byte a, Byte b) { Boolean r = null;/*from w w w.j a va2 s . co m*/ if ((a == null) || (b == null)) { r = null; } else { r = Boolean.valueOf(a.byteValue() >= b.byteValue()); } // LOG.info("evaluate(" + a + "," + b + ")=" + r); return r; }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPEqualOrLessThan.java
public Boolean evaluate(Byte a, Byte b) { Boolean r = null;/*from ww w.ja v a 2 s . c om*/ if ((a == null) || (b == null)) { r = null; } else { r = Boolean.valueOf(a.byteValue() <= b.byteValue()); } // LOG.info("evaluate(" + a + "," + b + ")=" + r); return r; }
From source file:org.apache.hadoop.hive.ql.udf.UDFOPGreaterThan.java
public Boolean evaluate(Byte a, Byte b) { Boolean r = null;//from ww w. ja v a 2 s .co m if ((a == null) || (b == null)) { r = null; } else { r = Boolean.valueOf(a.byteValue() > b.byteValue()); } // LOG.info("evaluate(" + a + "," + b + ")=" + r); return r; }