public enum Gender extends Enum<Gender>
An enumeration representing the gender of the subject of a noun phrase, or
the object or subject of a verb phrase. It is most commonly used with
personal pronouns. The gender is recorded in the Feature.GENDER
feature and applies to nouns and pronouns.
| Enum Constant and Description |
|---|
FEMININE
A word or phrase pertaining to a female topic.
|
MASCULINE
A word or phrase pertaining to a male topic.
|
NEUTER
A word or phrase pertaining to a neutral or gender-less topic.
|
| Modifier and Type | Method and Description |
|---|---|
static Gender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Gender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Gender MASCULINE
public static final Gender FEMININE
public static final Gender NEUTER
public static Gender[] values()
for (Gender c : Gender.values()) System.out.println(c);
public static Gender valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All Rights Reserved.