public enum NGender extends Enum<NGender> implements com.neurotec.lang.NEnum
| Enum Constant and Description |
|---|
FEMALE
Female.
|
MALE
Male.
|
UNKNOWN
Unknown gender.
|
UNSPECIFIED
Unspecified gender.
|
| Modifier and Type | Method and Description |
|---|---|
static NGender |
get(int value)
Gets the NGender specfieid by value.
|
int |
getValue()
Gets the value of the current object.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static NGender |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NGender[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NGender UNSPECIFIED
public static final NGender MALE
public static final NGender FEMALE
public static final NGender UNKNOWN
public static NGender[] values()
for (NGender c : NGender.values()) System.out.println(c);
public static NGender 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 int getValue()
getValue in interface com.neurotec.lang.NEnumpublic static com.neurotec.lang.NType nativeTypeOf()
public static NGender get(int value)
value - Gender value.Copyright © 2016 Neurotechnology. All rights reserved.