@Override public int hashCode() { int result = btcPubKey != null ? Arrays.hashCode(btcPubKey) : 0; result = 31 * result + (pubKeyRing != null ? pubKeyRing.hashCode() : 0); result = 31 * result + (arbitratorAddress != null ? arbitratorAddress.hashCode() : 0); result = 31 * result + (languageCodes != null ? languageCodes.hashCode() : 0); result = 31 * result + (btcAddress != null ? btcAddress.hashCode() : 0); result = 31 * result + (int) (registrationDate ^ (registrationDate >>> 32)); result = 31 * result + (registrationSignature != null ? registrationSignature.hashCode() : 0); result = 31 * result + (registrationPubKey != null ? Arrays.hashCode(registrationPubKey) : 0); return result; }
@Override public String toString() { return "Arbitrator{" + "arbitratorAddress=" + arbitratorAddress + ", languageCodes=" + languageCodes + ", btcAddress='" + btcAddress + '\'' + ", registrationDate=" + registrationDate + ", btcPubKey.hashCode()=" + Arrays.toString(btcPubKey).hashCode() + ", pubKeyRing.hashCode()=" + pubKeyRing.hashCode() + ", registrationSignature.hashCode()='" + registrationSignature.hashCode() + '\'' + ", registrationPubKey.hashCode()=" + Arrays.toString(registrationPubKey).hashCode() + '}'; }