javatools.util
Class FormattedLong
java.lang.Object
|
+--java.lang.Number
|
+--javatools.util.FormattedNumber
|
+--javatools.util.FormattedLong
- All Implemented Interfaces:
- java.io.Serializable
- public class FormattedLong
- extends FormattedNumber
It's a java.lang.Long, except in the fact it returns a "toString" value in a
formatted way.
- See Also:
- Serialized Form
Constructor Summary |
FormattedLong(long value)
Creates new FormattedLong |
FormattedLong(java.lang.Long i)
Creates a new FormattedLong. |
FormattedLong(java.lang.String s)
Creates a new FormattedLong. |
Methods inherited from class javatools.util.FormattedNumber |
byteValue, doubleValue, equals, floatValue, getFormatter, hashCode, intValue, longValue, setFormatter, shortValue, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FormattedLong
public FormattedLong(long value)
- Creates new FormattedLong
- Parameters:
value
- The long value to use.
FormattedLong
public FormattedLong(java.lang.String s)
throws java.lang.NumberFormatException
- Creates a new FormattedLong.
- Parameters:
s
- The long value as a string.
- Throws:
java.lang.NumberFormatException
- If the format of the string is not correct.
FormattedLong
public FormattedLong(java.lang.Long i)
- Creates a new FormattedLong.
- Parameters:
i
- The base Long object to refer to.