@Override public int hashCode() { return Objects .hashCode(stores, storefiles, storeUncompressedSizeMB, storefileSizeMB, memstoreSizeMB, storefileIndexSizeKB, readRequestsCount, cpRequestsCount, filteredReadRequestsCount, writeRequestsCount, rootIndexSizeKB, totalStaticIndexSizeKB, totalStaticBloomSizeKB, totalCompactingKVs, currentCompactedKVs); }
@Override public int hashCode() { return Objects.hashCode(name, bucketSize, queue, totalSize); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ClusterStatus)) { return false; } ClusterStatus other = (ClusterStatus) o; return Objects.equal(getHBaseVersion(), other.getHBaseVersion()) && Objects.equal(getLiveServerLoads(), other.getLiveServerLoads()) && getDeadServerNames().containsAll(other.getDeadServerNames()) && Arrays.equals(getMasterCoprocessors(), other.getMasterCoprocessors()) && Objects.equal(getMaster(), other.getMaster()) && getBackupMasters().containsAll(other.getBackupMasters()) && Objects.equal(getClusterId(), other.getClusterId()) && getMasterInfoPort() == other.getMasterInfoPort(); }
@Override public int hashCode() { return Objects.hashCode(name, description); }
private boolean isEqual(RegionLocations locs1, RegionLocations locs2) { HRegionLocation[] locArr1 = locs1.getRegionLocations(); HRegionLocation[] locArr2 = locs2.getRegionLocations(); if (locArr1.length != locArr2.length) { return false; } for (int i = 0; i < locArr1.length; i++) { // do not need to compare region info HRegionLocation loc1 = locArr1[i]; HRegionLocation loc2 = locArr2[i]; if (loc1 == null) { if (loc2 != null) { return false; } } else { if (loc2 == null) { return false; } if (loc1.getSeqNum() != loc2.getSeqNum()) { return false; } if (Objects.equal(loc1.getServerName(), loc2.getServerName())) { return false; } } } return true; }
@Override public int hashCode() { return Objects.hashCode(Bytes.hashCode(this.getRow()), method.getFullName(), request); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ClusterStatus)) { return false; } ClusterStatus other = (ClusterStatus) o; return Objects.equal(getHBaseVersion(), other.getHBaseVersion()) && Objects.equal(getLiveServerLoads(), other.getLiveServerLoads()) && getDeadServerNames().containsAll(other.getDeadServerNames()) && Arrays.equals(getMasterCoprocessors(), other.getMasterCoprocessors()) && Objects.equal(getMaster(), other.getMaster()) && getBackupMasters().containsAll(other.getBackupMasters()) && Objects.equal(getClusterId(), other.getClusterId()) && getMasterInfoPort() == other.getMasterInfoPort(); }
@Override public int hashCode() { return Objects .hashCode(stores, storefiles, storeUncompressedSizeMB, storefileSizeMB, memstoreSizeMB, storefileIndexSizeKB, readRequestsCount, filteredReadRequestsCount, writeRequestsCount, rootIndexSizeKB, totalStaticIndexSizeKB, totalStaticBloomSizeKB, totalCompactingKVs, currentCompactedKVs); }
@Override public boolean containsValue(@Nullable Object value) { for (V[] row : array) { for (V element : row) { if (Objects.equal(value, element)) { return true; } } } return false; }
@Override public int hashCode() { return Objects.hashCode(Bytes.hashCode(this.getRow()), method.getFullName(), request); }
private BiEntry<K, V> seekByKey(@Nullable Object key, int keyHash) { for (BiEntry<K, V> entry = hashTableKToV[keyHash & mask]; entry != null; entry = entry.nextInKToVBucket) { if (keyHash == entry.keyHash && Objects.equal(key, entry.key)) { return entry; } } return null; }
@Override public int hashCode() { return Objects.hashCode(numHashFunctions, funnel, strategy, bits); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof ElementOrder)) { return false; } ElementOrder<?> other = (ElementOrder<?>) obj; return (type == other.type) && Objects.equal(comparator, other.comparator); }
@Override public int hashCode() { return Objects.hashCode(equivalence, target); }
@Override public boolean equals(@Nullable Object obj) { if (obj instanceof ConstantFunction) { ConstantFunction<?> that = (ConstantFunction<?>) obj; return Objects.equal(value, that.value); } return false; }
@Override public int hashCode() { return Objects.hashCode(function, ordering); }
@Override public boolean equals(@Nullable Object obj) { if (obj instanceof SupplierOfInstance) { SupplierOfInstance<?> that = (SupplierOfInstance<?>) obj; return Objects.equal(instance, that.instance); } return false; }
@Override public int hashCode() { return Objects.hashCode(instance); }
@Override public boolean equals(@Nullable Object other) { if (this == other) { return true; } if (other instanceof HostAndPort) { HostAndPort that = (HostAndPort) other; return Objects.equal(this.host, that.host) && this.port == that.port && this.hasBracketlessColons == that.hasBracketlessColons; } return false; }