mirror of
https://github.com/AdaCore/why3.git
synced 2026-02-12 12:34:55 -08:00
45 lines
844 B
Java
45 lines
844 B
Java
/* This file has been extracted from module Exception2. */
|
|
public class Exception2 extends Exception {
|
|
|
|
public final int value;
|
|
public final boolean d;
|
|
public final boolean equals(Object obj) {
|
|
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null) {
|
|
return false;
|
|
}
|
|
if (!(this.getClass() == obj.getClass())) {
|
|
return false;
|
|
}
|
|
|
|
Exception2 other = (Exception2) obj;
|
|
if (!(this.value == other.value)) {
|
|
return false;
|
|
}
|
|
if (!(this.d == other.d)) {
|
|
return false;
|
|
}
|
|
return true;
|
|
|
|
}
|
|
public final int hashCode() {
|
|
int hashValue = 1;
|
|
hashValue = 31 * hashValue + this.value;
|
|
hashValue = 31 * hashValue + (this.d ? 1 : 0);
|
|
return hashValue;
|
|
}
|
|
|
|
|
|
|
|
public Exception2(int i) {
|
|
|
|
this.value = i;
|
|
this.d = false;
|
|
}
|
|
|
|
|
|
}
|