-
- All Implemented Interfaces:
public class Age.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Age.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final AgefromYears(Integer age)Returns the corresponding age in this enum given the age in years. final AgefromString(String age)Returns the corresponding age in this enum given a string resembling it. final AgefromAny(Object age)Returns the corresponding age in this enum given a string resembling it. -
-
Method Detail
-
fromYears
final Age fromYears(Integer age)
Returns the corresponding age in this enum given the age in years.
- Parameters:
age-the age in years.
-
fromString
final Age fromString(String age)
Returns the corresponding age in this enum given a string resembling it.
- Parameters:
age-the age as a string.
-
-
-
-