/** * Create an <code>unsigned int</code> by masking it with * <code>0xFFFFFFFF</code> i.e. <code>(int) -1</code> becomes * <code>(uint) 4294967295</code> */ public static UInteger valueOf(int value) { return valueOfUnchecked(value & MAX_VALUE); }
/** * Create an <code>unsigned int</code> by masking it with * <code>0xFFFFFFFF</code> i.e. <code>(int) -1</code> becomes * <code>(uint) 4294967295</code> */ public static UInteger valueOf(int value) { return valueOfUnchecked(value & MAX_VALUE); }
/** * Create an <code>unsigned int</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned int</code>. */ public static UInteger valueOf(String value) throws NumberFormatException { return valueOfUnchecked(rangeCheck(Long.parseLong(value))); }
/** * Create an <code>unsigned int</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned byte</code> */ public static UInteger valueOf(long value) throws NumberFormatException { return valueOfUnchecked(rangeCheck(value)); }
/** * Create an <code>unsigned int</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned int</code>. */ public static UInteger valueOf(String value) throws NumberFormatException { return valueOfUnchecked(rangeCheck(Long.parseLong(value))); }
/** * Create an <code>unsigned int</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned byte</code> */ public static UInteger valueOf(long value) throws NumberFormatException { return valueOfUnchecked(rangeCheck(value)); }