javatools.util
Class FormattedInteger

java.lang.Object
  |
  +--java.lang.Number
        |
        +--javatools.util.FormattedNumber
              |
              +--javatools.util.FormattedInteger
All Implemented Interfaces:
java.io.Serializable

public class FormattedInteger
extends FormattedNumber

It's a java.lang.Integer, except in the fact it returns its "toString" value in a formatted way.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javatools.util.FormattedNumber
formatter, num
 
Constructor Summary
FormattedInteger(int value)
          Creates new FormattedInteger
FormattedInteger(java.lang.Integer i)
          Creates a new FormattedInteger.
FormattedInteger(java.lang.String s)
          Creates a new FormattedInteger.
 
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
 

Constructor Detail

FormattedInteger

public FormattedInteger(int value)
Creates new FormattedInteger

Parameters:
value - The value as an int.

FormattedInteger

public FormattedInteger(java.lang.String s)
                 throws java.lang.NumberFormatException
Creates a new FormattedInteger.

Parameters:
s - The value as a string.
Throws:
java.lang.NumberFormatException - If the format is not correct.

FormattedInteger

public FormattedInteger(java.lang.Integer i)
Creates a new FormattedInteger.

Parameters:
i - The base Integer object to refer to.