Class AgeFormatter
java.lang.Object
ca.phon.session.format.AgeFormatter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringageToString(Period age) Deprecated.Format aPeriodobject as an age string.Deprecated.Convert the given object into a formatted String.Deprecated.Parse the given string into a new object instancestatic PeriodstringToAge(String text) Deprecated.Return an age string as aPeriodobject
-
Field Details
-
AGE_FORMAT
-
-
Constructor Details
-
AgeFormatter
public AgeFormatter()Deprecated.
-
-
Method Details
-
ageToString
-
stringToAge
Deprecated.Return an age string as aPeriodobject- Parameters:
text-- Returns:
- age
- Throws:
IllegalArgumentException- if the string is not formatted correctly
-
format
-
parse
Deprecated.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
-