private Object readResolve() { return instanceFor(value); } }
public static Uint16 fromShortBits(final short bits) { return instanceFor(bits); }
private Object readResolve() { return instanceFor(value); } }
public static Uint16 fromShortBits(final short bits) { return instanceFor(bits); }
public static Uint16 valueOf(final byte byteVal) { checkArgument(byteVal >= MIN_VALUE, "Negative values are not allowed"); return instanceFor(byteVal); }
public static Uint16 valueOf(final long longVal) { checkArgument(longVal >= MIN_VALUE && longVal <= MAX_VALUE, "Value %s is outside of allowed range", longVal); return instanceFor((short)(longVal & 0xffff)); }
public static Uint16 valueOf(final byte byteVal) { checkArgument(byteVal >= MIN_VALUE, "Negative values are not allowed"); return instanceFor(byteVal); }
public static Uint16 valueOf(final short shortVal) { checkArgument(shortVal >= MIN_VALUE, "Negative values are not allowed"); return instanceFor(shortVal); }
public static Uint16 valueOf(final int intVal) { checkArgument(intVal >= MIN_VALUE && intVal <= MAX_VALUE, "Value %s is outside of allowed range", intVal); return instanceFor((short)(intVal & 0xffff)); }
public static Uint16 valueOf(final long longVal) { checkArgument(longVal >= MIN_VALUE && longVal <= MAX_VALUE, "Value %s is outside of allowed range", longVal); return instanceFor((short)(longVal & 0xffff)); }
public static Uint16 valueOf(final short shortVal) { checkArgument(shortVal >= MIN_VALUE, "Negative values are not allowed"); return instanceFor(shortVal); }
public static Uint16 valueOf(final int intVal) { checkArgument(intVal >= MIN_VALUE && intVal <= MAX_VALUE, "Value %s is outside of allowed range", intVal); return instanceFor((short)(intVal & 0xffff)); }
public static Uint16 valueOf(final Uint8 uint) { return instanceFor(uint.shortValue()); }
public static Uint16 valueOf(final Uint8 uint) { return instanceFor(uint.shortValue()); }