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