import java.io.Serializable;
import java.text.MessageFormat;
-import java.util.LinkedList;
-import java.util.List;
/**
* Gender utilities class
*/
private static char[] validChars;
- /**
- * All available genders as a list
- * <p>
- * @return Selectable genders (not UNKNOWN)
- */
- public static List<Gender> allGenders () {
- // Init list
- final List<Gender> list = new LinkedList<>();
-
- // Walk through all genders
- for (final Gender gender : Gender.values()) {
- // Add it and check if it has been added
- list.add(gender);
- }
-
- // Return it
- return list;
- }
-
/**
* Getter for Gender enumeration from given character
* <p>