@Override public int hashCode() { String exceptionType = getExceptionType(); int hashCode = exceptionType==null?0:exceptionType.hashCode(); return hashCode*31 + getHandlerCodeAddress(); }
@Override public int hashCode() { String exceptionType = getExceptionType(); int hashCode = exceptionType==null?0:exceptionType.hashCode(); return hashCode*31 + getHandlerCodeAddress(); }
@Override public int hashCode() { String exceptionType = getExceptionType(); int hashCode = exceptionType==null?0:exceptionType.hashCode(); return hashCode*31 + getHandlerCodeAddress(); }
@Override public boolean equals(@Nullable Object o) { if (o instanceof ExceptionHandler) { ExceptionHandler other = (ExceptionHandler)o; return Objects.equal(getExceptionType(), other.getExceptionType()) && (getHandlerCodeAddress() == other.getHandlerCodeAddress()); } return false; }
@Override public boolean equals(@Nullable Object o) { if (o instanceof ExceptionHandler) { ExceptionHandler other = (ExceptionHandler)o; return Objects.equal(getExceptionType(), other.getExceptionType()) && (getHandlerCodeAddress() == other.getHandlerCodeAddress()); } return false; }
@Override public boolean equals(@Nullable Object o) { if (o instanceof ExceptionHandler) { ExceptionHandler other = (ExceptionHandler)o; return Objects.equal(getExceptionType(), other.getExceptionType()) && (getHandlerCodeAddress() == other.getHandlerCodeAddress()); } return false; }
@Override public int compareTo(@Nonnull ExceptionHandler o) { int res; String exceptionType = getExceptionType(); if (exceptionType == null) { if (o.getExceptionType() != null) { return 1; } } else { String otherExceptionType = o.getExceptionType(); if (otherExceptionType == null) { return -1; } res = exceptionType.compareTo(o.getExceptionType()); if (res != 0) return res; } return Ints.compare(getHandlerCodeAddress(), o.getHandlerCodeAddress()); }
@Override public int compareTo(@Nonnull ExceptionHandler o) { int res; String exceptionType = getExceptionType(); if (exceptionType == null) { if (o.getExceptionType() != null) { return 1; } } else { String otherExceptionType = o.getExceptionType(); if (otherExceptionType == null) { return -1; } res = exceptionType.compareTo(o.getExceptionType()); if (res != 0) return res; } return Ints.compare(getHandlerCodeAddress(), o.getHandlerCodeAddress()); }
@Override public int compareTo(@Nonnull ExceptionHandler o) { int res; String exceptionType = getExceptionType(); if (exceptionType == null) { if (o.getExceptionType() != null) { return 1; } } else { String otherExceptionType = o.getExceptionType(); if (otherExceptionType == null) { return -1; } res = exceptionType.compareTo(o.getExceptionType()); if (res != 0) return res; } return Ints.compare(getHandlerCodeAddress(), o.getHandlerCodeAddress()); }