public enum Disease extends Enum<Disease>
Enum Constant and Description |
---|
AFFECTED
corresponds to 2 = affected in the PED file.
|
UNAFFECTED
corresponds to 1 = unaffected in the PED file.
|
UNKNOWN
corresponds to 0 = unknown disease status in the PED file.
|
Modifier and Type | Method and Description |
---|---|
static Disease |
toDisease(String s)
Parse
String into a Disease value. |
int |
toInt() |
static Disease |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Disease[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Disease UNKNOWN
public static final Disease UNAFFECTED
public static final Disease AFFECTED
public static Disease[] values()
for (Disease c : Disease.values()) System.out.println(c);
public static Disease 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 toInt()
int
value representation for PED file.public static Disease toDisease(String s) throws PedParseException
String
into a Disease
value.s
- String to parseDisease
objectPedParseException
- if s
was not equal to "0"
, "1"
, or "2"
.Copyright © 2016. All rights reserved.