@Immutable public class Severity extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Severity |
ERROR
An error, e.g. a compile error.
|
static Severity |
WARNING_HIGH
A warning with priority high.
|
static Severity |
WARNING_LOW
A warning with priority low.
|
static Severity |
WARNING_NORMAL
A warning with priority normal.
|
| Constructor and Description |
|---|
Severity(String name)
Creates a new
Severity with the specified name. |
| Modifier and Type | Method and Description |
|---|---|
static Collection<Severity> |
collectSeveritiesFrom(Severity minimumSeverity)
Gets the severities starting from the specified severity to
ERROR. |
boolean |
equals(Object o) |
boolean |
equalsIgnoreCase(String severityName)
Checks if this instance has a name that is equal to the specified name.
|
String |
getName()
Returns the name of the severity.
|
static org.eclipse.collections.api.set.ImmutableSet<Severity> |
getPredefinedValues()
Returns the set of predefined
Severity instances. |
int |
hashCode() |
String |
toString() |
static Severity |
valueOf(String name)
Creates a new
Severity with the specified name. |
static Severity |
valueOf(String severity,
Severity defaultValue)
Converts a String severity to one of the predefined severities.
|
public static final Severity ERROR
public static final Severity WARNING_HIGH
public static final Severity WARNING_NORMAL
public static final Severity WARNING_LOW
public static Severity valueOf(String name)
Severity with the specified name. If the name is the same as the name of one of the
predefined severities, then this existing severity is returned.name - the name of the severitypublic static Severity valueOf(@CheckForNull String severity, Severity defaultValue)
severity - priority as a StringdefaultValue - default severity, if the specified String is null or is not a valid Severity namepublic static Collection<Severity> collectSeveritiesFrom(Severity minimumSeverity)
ERROR.minimumSeverity - the minimum prioritypublic static org.eclipse.collections.api.set.ImmutableSet<Severity> getPredefinedValues()
Severity instances.public String getName()
public boolean equalsIgnoreCase(String severityName)
severityName - the name to checktrue if this instance has the same name, false otherwiseCopyright © 2018. All rights reserved.