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