@Override public Byte convert(ByteValue param) { if (param == null) { return null; } return param.getValue(); };
public Byte marshal(ByteValue val) throws Exception { return val.getValue(); } }
public Byte marshal(ByteValue val) throws Exception { return val.getValue(); } }
public static ShortValue autocast(ByteValue x, ShortValue y) { if (x == null) { return null; } return new ShortValue(x.getValue(), x, true); }
public static IntValue autocast(ByteValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.getValue(), x, true); }
public static DoubleValue autocast(ByteValue x, DoubleValue y) { if (x == null) { return null; } return new DoubleValue(x.getValue(), x, true); }
public static BigDecimalValue autocast(ByteValue x, BigDecimalValue y) { if (x == null) { return null; } return new BigDecimalValue(String.valueOf(x.getValue()), x, true); }
public static FloatValue autocast(ByteValue x, FloatValue y) { if (x == null) { return null; } return new FloatValue(x.getValue(), x, true); }
public static BigIntegerValue autocast(ByteValue x, BigIntegerValue y) { if (x == null) { return null; } return new BigIntegerValue(String.valueOf(x.getValue()), x, true); }
public static BigDecimalValue autocast(ByteValue x, BigDecimalValue y) { if (x == null) { return null; } return new BigDecimalValue(String.valueOf(x.getValue()), x, true); }
public static BigIntegerValue autocast(ByteValue x, BigIntegerValue y) { if (x == null) { return null; } return new BigIntegerValue(String.valueOf(x.getValue()), x, true); }
public static LongValue autocast(ByteValue x, LongValue y) { if (x == null) { return null; } return new LongValue(x.getValue(), x, true); }
public static IntValue autocast(ByteValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.getValue(), x, true); }
public static LongValue autocast(ByteValue x, LongValue y) { if (x == null) { return null; } return new LongValue(x.getValue(), x, true); }
public static ShortValue autocast(ByteValue x, ShortValue y) { if (x == null) { return null; } return new ShortValue(x.getValue(), x, true); }
public static FloatValue autocast(ByteValue x, FloatValue y) { if (x == null) { return null; } return new FloatValue(x.getValue(), x, true); }
public static DoubleValue autocast(ByteValue x, DoubleValue y) { if (x == null) { return null; } return new DoubleValue(x.getValue(), x, true); }
/** * Divides left hand operand by right hand operand * * @param number org.openl.meta.ByteValue * @param divisor org.openl.meta.ByteValue * @return LongValue the result of division operation */ public static LongValue quotient(org.openl.meta.ByteValue number, org.openl.meta.ByteValue divisor) { if (number != null && divisor != null) { LongValue result = new LongValue(MathUtils.quotient(number.getValue(), divisor.getValue())); return new LongValue(result, NumberOperations.QUOTIENT, null); } return null; }
public static ByteValue add(String value1, ByteValue value2) { if (value1 == null) { return value2; } if (value2 == null) { return new ByteValue(Byte.valueOf(value1)); } byte v = Byte.valueOf(value1); return new org.openl.meta.ByteValue(new ByteValue(v), value2, Operators.add(v, value2.getValue()), Formulas.ADD); }
public static ByteValue add(ByteValue value1, String value2) { if (value2 == null) { return value1; } if (value1 == null) { return new ByteValue(Byte.valueOf(value2)); } byte v = Byte.valueOf(value2); return new org.openl.meta.ByteValue(value1, new ByteValue(v), Operators.add(value1.getValue(), v), Formulas.ADD); }