Serializable, Comparable<Modality>public enum Modality extends Enum<Modality>
| Modifier and Type | Field | Description |
|---|---|---|
int |
mode |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getType() |
Get the
Modality type as a string. |
static Modality |
keyOf(int mode) |
|
static Modality |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Modality[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Modality MAJOR
public static final Modality MINOR
public static Modality[] values()
for (Modality c : Modality.values()) System.out.println(c);
public static Modality 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 static Modality keyOf(int mode)
Copyright © 2019. All rights reserved.