public enum Gender extends Enum<Gender>
Enum Constant and Description |
---|
FEMININE
Feminine gender.
|
HUMAN
Human gender.
|
MASCULINE
Masculine gender.
|
NEUTRAL
Neutral gender.
|
UNDEF
Undefined gender.
|
Modifier and Type | Method and Description |
---|---|
static Gender |
create(String str)
Returns the gender that corresponds to the given Prolog atom.
|
String |
toString()
Returns the Prolog atom representation of the type of gender.
|
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 UNDEF
public static final Gender NEUTRAL
public static final Gender HUMAN
public static final Gender MASCULINE
public static final Gender FEMININE
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 nullpublic String toString()
Copyright © 2013. All Rights Reserved.