public enum Affinity extends Enum<Affinity>
Modifier and Type | Method and Description |
---|---|
int |
getDurationMultiplier() |
String |
getLabel() |
static Affinity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Affinity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Affinity NONE
public static final Affinity LOW
public static final Affinity MEDIUM
public static final Affinity HIGH
public static Affinity[] values()
for (Affinity c : Affinity.values()) System.out.println(c);
public static Affinity 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 getDurationMultiplier()
public String getLabel()
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.