/** * Create an <code>unsigned int</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned int</code> */ private UInteger(long value) throws NumberFormatException { this.value = rangeCheck(value); }
/** * Create an <code>unsigned int</code> * * @throws NumberFormatException If <code>value</code> is not in the range * of an <code>unsigned int</code> */ private UInteger(long value) throws NumberFormatException { this.value = rangeCheck(value); }
/** * Create an <code>unsigned int</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned int</code>. */ private UInteger(String value) throws NumberFormatException { this.value = rangeCheck(Long.parseLong(value)); }
/** * Create an <code>unsigned int</code> * * @throws NumberFormatException If <code>value</code> does not contain a * parsable <code>unsigned int</code>. */ private UInteger(String value) throws NumberFormatException { this.value = rangeCheck(Long.parseLong(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)); }
/** * Replace version read through deserialization with cached version. * * @return cached instance of this object's value if one exists, otherwise * this object * @throws ObjectStreamException */ private Object readResolve() throws ObjectStreamException { UInteger cached; // the value read could be invalid so check it rangeCheck(value); if ((cached = getCached(value)) != null) return cached; return this; }
/** * Replace version read through deserialization with cached version. * * @return cached instance of this object's value if one exists, otherwise * this object * @throws ObjectStreamException */ private Object readResolve() throws ObjectStreamException { UInteger cached; // the value read could be invalid so check it rangeCheck(value); if ((cached = getCached(value)) != null) return cached; return this; }