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