@Override public int compareTo(X509IssuerSerial another) { int cissuer = issuer.toString().compareTo(another.issuer.toString()); if (cissuer != 0) { return cissuer; } return this.serial.compareTo(another.serial); }
public int hashCode() { if (hashcode == 0) { int result = 17; result = 37 * result + issuer.hashCode(); result = 37 * result + serial.hashCode(); hashcode = result; } return hashcode; }
public boolean equals(Object o) { if (o == this) { return true; } if (!(o instanceof X509IssuerSerial)) { return false; } X509IssuerSerial other = (X509IssuerSerial) o; if (serial.equals(other.getSerial()) && issuer.equals(other.getIssuer())) { return true; } return false; }