it.amattioli.encapsulate.dates.format
Class TimeIntervalFormat

Show UML class diagram
java.lang.Object
  extended by java.text.Format
      extended by it.amattioli.encapsulate.dates.format.TimeIntervalFormat
All Implemented Interfaces:
Serializable, Cloneable

public class TimeIntervalFormat
extends Format

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
Format.Field
 
Constructor Summary
TimeIntervalFormat()
           
TimeIntervalFormat(Locale locale)
           
 
Method Summary
 StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
           
static Locale[] getAvailableLocales()
           
static TimeIntervalFormat getInstance()
           
static TimeIntervalFormat getInstance(Locale locale)
           
 TimeInterval parse(String s)
           
 TimeInterval parseObject(String s)
           
 Object parseObject(String source, ParsePosition pos)
           
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeIntervalFormat

public TimeIntervalFormat()

TimeIntervalFormat

public TimeIntervalFormat(Locale locale)
Method Detail

getInstance

public static TimeIntervalFormat getInstance()

getInstance

public static TimeIntervalFormat getInstance(Locale locale)

getAvailableLocales

public static Locale[] getAvailableLocales()

format

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

parseObject

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

parseObject

public TimeInterval parseObject(String s)
                         throws ParseException
Overrides:
parseObject in class Format
Throws:
ParseException

parse

public TimeInterval parse(String s)
                   throws ParseException
Throws:
ParseException


Copyright © 2011. All Rights Reserved.