public interface ExceptionHandler extends java.lang.Comparable<ExceptionHandler>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ExceptionHandler o)
Compare this ExceptionHandler to another ExceptionHandler.
|
boolean |
equals(java.lang.Object o)
Compares this ExceptionHandler to another ExceptionHandler for equality.
|
java.lang.String |
getExceptionType()
Gets the type of exception that is handled by this handler.
|
TypeReference |
getExceptionTypeReference()
Gets the type of exception that is handled by this handler.
|
int |
getHandlerCodeAddress()
Gets the code offset of the handler.
|
int |
hashCode()
Returns a hashcode for this ExceptionHandler.
|
@Nullable java.lang.String getExceptionType()
@Nullable TypeReference getExceptionTypeReference()
int getHandlerCodeAddress()
int hashCode()
String exceptionType = getExceptionType();
int hashCode = exceptionType==null?0:exceptionType.hashCode();
return hashCode*31 + getHandlerCodeAddress();
hashCode in class java.lang.Objectboolean equals(@Nullable
java.lang.Object o)
equals in class java.lang.Objecto - The object to be compared for equality with this ExceptionHandlerint compareTo(@Nonnull
ExceptionHandler o)
compareTo in interface java.lang.Comparable<ExceptionHandler>o - The ExceptionHandler to compare with this ExceptionHandler