if (other.hasCommitPrefetch()) { mergeCommitPrefetch(other.getCommitPrefetch());
if (other.hasCommitPrefetch()) { mergeCommitPrefetch(other.getCommitPrefetch());
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getBaseChunkCount() > 0) { hash = (37 * hash) + BASE_CHUNK_FIELD_NUMBER; hash = (53 * hash) + getBaseChunkList().hashCode(); } if (getFragmentCount() > 0) { hash = (37 * hash) + FRAGMENT_FIELD_NUMBER; hash = (53 * hash) + getFragmentList().hashCode(); } if (hasCommitPrefetch()) { hash = (37 * hash) + COMMIT_PREFETCH_FIELD_NUMBER; hash = (53 * hash) + getCommitPrefetch().hashCode(); } if (hasTreePrefetch()) { hash = (37 * hash) + TREE_PREFETCH_FIELD_NUMBER; hash = (53 * hash) + getTreePrefetch().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
@java.lang.Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta) obj; boolean result = true; result = result && getBaseChunkList() .equals(other.getBaseChunkList()); result = result && getFragmentList() .equals(other.getFragmentList()); result = result && (hasCommitPrefetch() == other.hasCommitPrefetch()); if (hasCommitPrefetch()) { result = result && getCommitPrefetch() .equals(other.getCommitPrefetch()); } result = result && (hasTreePrefetch() == other.hasTreePrefetch()); if (hasTreePrefetch()) { result = result && getTreePrefetch() .equals(other.getTreePrefetch()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta) obj; boolean result = true; result = result && getBaseChunkList() .equals(other.getBaseChunkList()); result = result && getFragmentList() .equals(other.getFragmentList()); result = result && (hasCommitPrefetch() == other.hasCommitPrefetch()); if (hasCommitPrefetch()) { result = result && getCommitPrefetch() .equals(other.getCommitPrefetch()); } result = result && (hasTreePrefetch() == other.hasTreePrefetch()); if (hasTreePrefetch()) { result = result && getTreePrefetch() .equals(other.getTreePrefetch()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getBaseChunkCount() > 0) { hash = (37 * hash) + BASE_CHUNK_FIELD_NUMBER; hash = (53 * hash) + getBaseChunkList().hashCode(); } if (getFragmentCount() > 0) { hash = (37 * hash) + FRAGMENT_FIELD_NUMBER; hash = (53 * hash) + getFragmentList().hashCode(); } if (hasCommitPrefetch()) { hash = (37 * hash) + COMMIT_PREFETCH_FIELD_NUMBER; hash = (53 * hash) + getCommitPrefetch().hashCode(); } if (hasTreePrefetch()) { hash = (37 * hash) + TREE_PREFETCH_FIELD_NUMBER; hash = (53 * hash) + getTreePrefetch().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }