Class PeriodFormatter
java.lang.Object
ca.phon.formatter.PeriodFormatter
@FormatterType(Period.class)
public class PeriodFormatter
extends Object
implements Formatter<Period>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert the given object into a formatted String.static voidParse the given string into a new object instancestatic StringperiodToString(Period period, PeriodFormatStyle formatStyle) static PeriodstringToPeriod(String text)
-
Constructor Details
-
PeriodFormatter
public PeriodFormatter() -
PeriodFormatter
-
-
Method Details
-
periodToString
-
stringToPeriod
- Throws:
ParseException
-
format
-
parse
Description copied from interface:FormatterParse the given string into a new object instance- Specified by:
parsein interfaceFormatter<Period>- Parameters:
text-- Returns:
- parsed object
- Throws:
ParseException- if there was a problem parsing the given text
-
main
- Throws:
ParseException
-