public enum ConsentStatus extends Enum<ConsentStatus>
| Enum Constant and Description |
|---|
NO
Used when a consent is not granted.
|
NOT_SET
Used for when a consent instance has just been loaded, and has no status.
|
YES
Used when a consent is granted.
|
| Modifier and Type | Method and Description |
|---|---|
static ConsentStatus |
fromString(String string)
For converting a string into this
Enum. |
String |
toString() |
static ConsentStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsentStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsentStatus NOT_SET
public static final ConsentStatus YES
public static final ConsentStatus NO
public static ConsentStatus[] values()
for (ConsentStatus c : ConsentStatus.values()) System.out.println(c);
public static ConsentStatus 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()
toString in class Enum<ConsentStatus>public static ConsentStatus fromString(String string)
Enum.string - which corresponds to one of this enum valuesCopyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.