public static class ChannelAccessStatus.StatusSeverity
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tells whether the specified object represents the same severity.
|
ChannelAccessStatus.StatusSeverityLevel |
getLevel()
Returns the level of this severity.
|
int |
hashCode()
Returns a hash code value for this severity.
|
boolean |
isSevere()
Returns
true if this severity indicates a severe
problem. |
java.lang.String |
toString()
Returns a string representation of this severity.
|
public ChannelAccessStatus.StatusSeverityLevel getLevel()
public boolean isSevere()
true if this severity indicates a severe
problem. Usually, the severe flag is only used in combination with
the ChannelAccessStatus.StatusSeverityLevel.ERROR level and is reserved for
problems that indicate an unexpected problem in the server.public int hashCode()
Returns a hash code value for this severity. This method is supported for the benefit of hash tables. As instances of this type are immutable, the hash code is a fixed number that is already determined during construction.
If two severities are equal (as indicated by the return value of
equals(Object)), they also have the same hash code. However,
the fact that two messages have the same hash code does not imply
that they are equal, even though the implementation of this method
has been carefully designed to make such a collision extremely
unlikely.
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
Tells whether the specified object represents the same severity.
Two severities are considered equal if they have the same severity level and if they both have the same "severe" flag (either set for both or not set for both).
equals in class java.lang.Objectobj - reference object with which this object is compared.true if obj is a severity that has
the same level and severe flag as this severity,
false otherwise.public java.lang.String toString()
ERROR severity level is an exception to this
rule: If the "severe" bit is set for this level, the string "FATAL"
is returned instead of "ERROR".toString in class java.lang.ObjectCopyright © 2014–2018 aquenos GmbH. All rights reserved.