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