Object Gender.Companion
-
- All Implemented Interfaces:
public class Gender.Companion
Factories for Gender.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Gender.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final Gender
fromString(String gender)
Returns the corresponding gender in this enum given a string resembling it. -
-
Method Detail
-
fromString
final Gender fromString(String gender)
Returns the corresponding gender in this enum given a string resembling it.
- Parameters:
gender
-the gender as a string.
-
-
-
-