public enum ResultRoleextends Enum<ResultRole>
Enum Constant and Description |
---|
OMITTED Does not participate in any metric, garbage result. |
PRIMARY Participates in primary metric calculation. |
SECONDARY Participates in secondary metric calculations. |
Modifier and Type | Method and Description |
---|---|
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, inthe order they are declared. |
public static final ResultRole PRIMARY
public static final ResultRole SECONDARY
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()
Copyright © 2012-2015 Oracle. All Rights Reserved.