public interface Cause
Note: There are two implementations of Cause
:
StandardCause
and CustomCause
. No custom subclasses are
allowed.
Either the enum StandardCause
or the method
Causes.valueOf(int)
can be used to get a cause instance. The value
for the cause must be between 0 and 63 (both inclusive).
Since the Causes
class caches the object instances internally, causes
can be compared either by using #equals(Object)
or their instance.
Modifier and Type | Method and Description |
---|---|
short |
getValue() |