-
Methods in MySTARS that return Gender
Modifier and Type |
Method |
Description |
protected static Gender |
Gender.getGender(int gender) |
A helper method to get the Gender from a String input.
|
static Gender |
Gender.getGender(java.lang.String gender) |
A helper method to get the Gender from a String input.
|
Gender |
Student.getGender() |
Returns the student's gender.
|
static Gender |
Gender.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Gender[] |
Gender.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructors in MySTARS with parameters of type Gender
Constructor |
Description |
Student(java.lang.String userName,
java.lang.String matricNumber,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String password,
Gender gender,
java.lang.String nationality) |
The constructor with all possible parameters.
|
Student(java.lang.String userName,
java.lang.String matricNumber,
java.lang.String firstName,
java.lang.String lastName,
Gender gender,
java.lang.String nationality) |
The constructor with the minimum required number of parameters.
|