@Override public UShort convert(Integer in, Context context) throws Exception { if (in == null) { return null; } return UShort.valueOf(in); } });
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned short</code>. * @see UShort#valueOf(String) */ public static UShort ushort(String value) throws NumberFormatException { return value == null ? null : UShort.valueOf(value); }
/** * Create an <code>unsigned short</code> by masking it with * <code>0xFFFF</code> i.e. <code>(short) -1</code> becomes * <code>(ushort) 65535</code> * * @see UShort#valueOf(short) */ public static UShort ushort(short value) { return UShort.valueOf(value); }
@Override public UShort convert(Integer in, Context context) throws Exception { if (in == null) { return null; } return UShort.valueOf(in); } });
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned short</code> * @see UShort#valueOf(int) */ public static UShort ushort(int value) throws NumberFormatException { return UShort.valueOf(value); }
@Override public UShort convert(Short in, Context context) throws Exception { if (in == null) { return null; } return UShort.valueOf(in); } });
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned short</code>. * @see UShort#valueOf(String) */ public static UShort ushort(String value) throws NumberFormatException { return value == null ? null : UShort.valueOf(value); }
/** * Create an <code>unsigned short</code> by masking it with * <code>0xFFFF</code> i.e. <code>(short) -1</code> becomes * <code>(ushort) 65535</code> * * @see UShort#valueOf(short) */ public static UShort ushort(short value) { return UShort.valueOf(value); }
@Override public UShort convert(Short in, Context context) throws Exception { if (in == null) { return null; } return UShort.valueOf(in); } });
/** * Create an <code>unsigned short</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned short</code> * @see UShort#valueOf(int) */ public static UShort ushort(int value) throws NumberFormatException { return UShort.valueOf(value); }
public UShort subtract(final int val) { return valueOf(value - val); } }
public UShort add(UShort val) throws NumberFormatException { return valueOf(value + val.value); }
public UShort add(int val) throws NumberFormatException { return valueOf(value + val); }
public UShort subtract(final UShort val) { return valueOf(value - val.value); }
@Override final UShort get0(BindingGetStatementContext<U> ctx) throws SQLException { String string = ctx.statement().getString(ctx.index()); return string == null ? null : UShort.valueOf(string); }
@Override final UShort get0(BindingGetSQLInputContext<U> ctx) throws SQLException { String string = ctx.input().readString(); return string == null ? null : UShort.valueOf(string); }
return (T) UShort.valueOf(string);
return (T) UByte.valueOf(string); else if (type == UShort.class) return (T) UShort.valueOf(string); else if (type == UInteger.class) return (T) UInteger.valueOf(string);
return (T) (string == null ? null : UShort.valueOf(string));
return (T) (string == null ? null : UShort.valueOf(string));