/** * Is used to overload implicit cast operators from double to org.openl.meta.DoubleValue * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.DoubleValue */ public static org.openl.meta.DoubleValue autocast(double x, org.openl.meta.DoubleValue y) { return new org.openl.meta.DoubleValue((double) x); }
/** * Is used to overload implicit cast operators from double to org.openl.meta.DoubleValue * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.DoubleValue */ public static org.openl.meta.DoubleValue autocast(double x, org.openl.meta.DoubleValue y) { return new org.openl.meta.DoubleValue((double) x); }
/** * Is used to overload implicit cast operators from long to org.openl.meta.DoubleValue * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.DoubleValue */ public static org.openl.meta.DoubleValue autocast(long x, org.openl.meta.DoubleValue y) { return new org.openl.meta.DoubleValue((double) x); } /**
/** * Is used to overload implicit cast operators from short to org.openl.meta.DoubleValue * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.DoubleValue */ public static org.openl.meta.DoubleValue autocast(short x, org.openl.meta.DoubleValue y) { return new org.openl.meta.DoubleValue((double) x); } /**
/** * Is used to overload implicit cast operators from int to org.openl.meta.DoubleValue * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.DoubleValue */ public static org.openl.meta.DoubleValue autocast(int x, org.openl.meta.DoubleValue y) { return new org.openl.meta.DoubleValue((double) x); } /**
/** * Is used to overload implicit cast operators from float to org.openl.meta.DoubleValue * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.DoubleValue */ public static org.openl.meta.DoubleValue autocast(float x, org.openl.meta.DoubleValue y) { return new org.openl.meta.DoubleValue((double) x); } /**
/** * Is used to overload implicit cast operators from byte to org.openl.meta.DoubleValue * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.DoubleValue */ public static org.openl.meta.DoubleValue autocast(byte x, org.openl.meta.DoubleValue y) { return new org.openl.meta.DoubleValue((double) x); } /**
/** * Is used to overload implicit cast operators from int to org.openl.meta.DoubleValue * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.DoubleValue */ public static org.openl.meta.DoubleValue autocast(char x, org.openl.meta.DoubleValue y) { return new org.openl.meta.DoubleValue((double) x); } /**
public static DoubleValue round(DoubleValue value, int scale, int roundingMethod) { if (value == null) { return null; } double rounded = Round.round(value.value, scale, roundingMethod); DoubleValue newValue = new DoubleValue(rounded); return new DoubleValue(newValue, NumberOperations.ROUND, value, new DoubleValue(scale)); }
public static DoubleValue round(DoubleValue value, int scale) { if (value == null) { return null; } double rounded = Round.round(value.value, scale); DoubleValue newValue = new DoubleValue(rounded); return new DoubleValue(newValue, NumberOperations.ROUND, value, new DoubleValue(scale)); }
public static DoubleValue round(DoubleValue value, int scale, int roundingMethod) { if (value == null) { return null; } double rounded = Round.round(value.value, scale, roundingMethod); DoubleValue newValue = new DoubleValue(rounded); return new DoubleValue(newValue, NumberOperations.ROUND, value, new DoubleValue(scale)); }
public static DoubleValue round(DoubleValue value) { if (value == null) { return null; } double rounded = Round.round(value.value, 0); DoubleValue newValue = new DoubleValue(rounded); return new DoubleValue(newValue, NumberOperations.ROUND, value); }
public static DoubleValue autocast(IntValue x, DoubleValue y) { if (x == null) { return null; } return new DoubleValue(x.getValue(), x, true); }
public static DoubleValue cast(BigDecimalValue x, DoubleValue y) { if (x == null) { return null; } return new DoubleValue(x.doubleValue(), x, false); }
public static DoubleValue autocast(ByteValue x, DoubleValue y) { if (x == null) { return null; } return new DoubleValue(x.getValue(), x, true); }
public static DoubleValue autocast(FloatValue x, DoubleValue y) { if (x == null) { return null; } return new DoubleValue(x.getValue(), x, true); }
@Override public Object readObject(MessageReader reader, Context context) { Double value = (Double) super.readObject(reader, context); return (value == null) ? null : new DoubleValue(value); } }
public static DoubleValue cast(BigIntegerValue x, DoubleValue y) { if (x == null) { return null; } return new DoubleValue(x.doubleValue(), x, false); }
public static DoubleValue autocast(ShortValue x, DoubleValue y) { if (x == null) { return null; } return new DoubleValue(x.getValue(), x, true); }
public static DoubleValue autocast(LongValue x, DoubleValue y) { if (x == null) { return null; } return new DoubleValue(x.getValue(), x, true); }