/** * Is used to overload implicit cast operators from int to * org.openl.meta.IntValue * * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.IntValue */ public static org.openl.meta.IntValue autocast(int x, org.openl.meta.IntValue y) { return new org.openl.meta.IntValue((int) x); }
/** * Is used to overload implicit cast operators from byte to * org.openl.meta.IntValue * * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.IntValue */ public static org.openl.meta.IntValue autocast(byte x, org.openl.meta.IntValue y) { return new org.openl.meta.IntValue((int) x); }
/** * Is used to overload implicit cast operators from char to * org.openl.meta.IntValue * * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.IntValue */ public static org.openl.meta.IntValue autocast(char x, org.openl.meta.IntValue y) { return new org.openl.meta.IntValue((int) x); }
/** * Is used to overload implicit cast operators from short to * org.openl.meta.IntValue * * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.IntValue */ public static org.openl.meta.IntValue autocast(short x, org.openl.meta.IntValue y) { return new org.openl.meta.IntValue((int) x); }
/** * Is used to overload implicit cast operators from short to * org.openl.meta.IntValue * * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.IntValue */ public static org.openl.meta.IntValue autocast(short x, org.openl.meta.IntValue y) { return new org.openl.meta.IntValue((int) x); }
/** * Is used to overload implicit cast operators from int to * org.openl.meta.IntValue * * @param x * @param y is needed to avoid ambiguity in Java method resolution * @return the casted value to org.openl.meta.IntValue */ public static org.openl.meta.IntValue autocast(int x, org.openl.meta.IntValue y) { return new org.openl.meta.IntValue((int) x); }
public static IntValue add(IntValue value1, String value2) { if (value2 == null) { return value1; } if (value1 == null) { return new IntValue(Integer.valueOf(value2)); } int v = Integer.valueOf(value2); return new org.openl.meta.IntValue(value1, new IntValue(v), Operators.add(value1.getValue(), v), Formulas.ADD); }
public static IntValue add(String value1, IntValue value2) { if (value1 == null) { return value2; } if (value2 == null) { return new IntValue(Integer.valueOf(value1)); } int v = Integer.valueOf(value1); return new org.openl.meta.IntValue(new IntValue(v), value2, Operators.add(v, value2.getValue()), Formulas.ADD); }
public static IntValue cast(BigIntegerValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.intValue(), x, false); }
public static IntValue autocast(ShortValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.getValue(), x, true); }
public static IntValue cast(LongValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.intValue(), x, false); }
@Override public Object readObject(MessageReader reader, Context context) { Integer value = (Integer) super.readObject(reader, context); return (value == null) ? null : new IntValue(value); } }
public static IntValue cast(FloatValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.intValue(), x, false); }
public static IntValue autocast(ByteValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.getValue(), x, true); }
public static IntValue cast(LongValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.intValue(), x, false); }
@Override public Object readObject(MessageReader reader, Context context) { Integer value = (Integer) super.readObject(reader, context); return (value == null) ? null : new IntValue(value); } }
public static IntValue cast(BigDecimalValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.intValue(), x, false); }
public static IntValue cast(DoubleValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.intValue(), x, false); }
public static IntValue cast(DoubleValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.intValue(), x, false); }
public static IntValue autocast(ByteValue x, IntValue y) { if (x == null) { return null; } return new IntValue(x.getValue(), x, true); }