/** * Is used to overload implicit cast operators from byte to * org.openl.meta.ByteValue * * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.ByteValue */ public static org.openl.meta.ByteValue autocast(byte x, org.openl.meta.ByteValue y) { return new org.openl.meta.ByteValue((byte) x); }
/** * Is used to overload implicit cast operators from byte to * org.openl.meta.ByteValue * * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.ByteValue */ public static org.openl.meta.ByteValue autocast(byte x, org.openl.meta.ByteValue y) { return new org.openl.meta.ByteValue((byte) x); }
private static ByteValue instance(ByteValue result, NumberOperations operation, ByteValue... values) { return result == null ? null : new ByteValue(result, operation, values); }
public static ByteValue autocast(String x, ByteValue y) { if (x == null) { return null; } return new ByteValue(Byte.valueOf(x)); }
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); }
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 cast(ShortValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
public static ByteValue cast(FloatValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
@Override public Object readObject(MessageReader reader, Context context) { Byte value = (Byte) super.readObject(reader, context); return (value == null) ? null : new ByteValue(value); } }
public static ByteValue cast(IntValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
public static ByteValue cast(FloatValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
public static ByteValue cast(BigIntegerValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
public static ByteValue cast(DoubleValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
public static ByteValue cast(BigIntegerValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
public static ByteValue cast(BigDecimalValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
public static ByteValue cast(LongValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
public static ByteValue cast(IntValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
@Override public Object readObject(MessageReader reader, Context context) { Byte value = (Byte) super.readObject(reader, context); return (value == null) ? null : new ByteValue(value); } }
public static ByteValue cast(LongValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }
public static ByteValue cast(BigDecimalValue x, ByteValue y) { if (x == null) { return null; } return new ByteValue(x.byteValue(), x, false); }