Serializable, Comparable<ResultRole>public enum ResultRole extends Enum<ResultRole>
| Enum Constant | Description |
|---|---|
OMITTED |
Does not participate in any metric, garbage result.
|
PRIMARY |
Participates in primary metric calculation.
|
SECONDARY |
Participates in secondary metric calculations.
|
SECONDARY_DERIVATIVE |
Same as
SECONDARY, but always recomputed. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isDerivative() |
|
boolean |
isPrimary() |
|
boolean |
isSecondary() |
|
static ResultRole |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ResultRole[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultRole PRIMARY
public static final ResultRole SECONDARY
public static final ResultRole SECONDARY_DERIVATIVE
SECONDARY, but always recomputed.public static final ResultRole OMITTED
public static ResultRole[] values()
for (ResultRole c : ResultRole.values()) System.out.println(c);
public static ResultRole 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 boolean isPrimary()
public boolean isSecondary()
public boolean isDerivative()
Copyright © 2012-2017 Oracle. All Rights Reserved.