intarsys runtime library

de.intarsys.tools.format
Class TrivialIntegerFormat

java.lang.Object
  extended by java.text.Format
      extended by de.intarsys.tools.format.TrivialIntegerFormat
All Implemented Interfaces:
Serializable, Cloneable

public class TrivialIntegerFormat
extends Format

A thread safe, quite trivial formatter for integer numbers

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
Format.Field
 
Constructor Summary
TrivialIntegerFormat()
          Create a TrivialIntegerFormat
 
Method Summary
 StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
           
static TrivialIntegerFormat getInstance()
          The default instance
 Object parseObject(String source, ParsePosition status)
           
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrivialIntegerFormat

public TrivialIntegerFormat()
Create a TrivialIntegerFormat

Method Detail

getInstance

public static TrivialIntegerFormat getInstance()
The default instance

Returns:
The default instance

format

public StringBuffer format(Object obj,
                           StringBuffer toAppendTo,
                           FieldPosition pos)
Specified by:
format in class Format

parseObject

public Object parseObject(String source,
                          ParsePosition status)
Specified by:
parseObject in class Format

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.