List<BaseChunk> baseChunks = meta.getBaseChunkList(); int high = baseChunks.size(); int low = 0;
List<BaseChunk> baseChunks = meta.getBaseChunkList(); int high = baseChunks.size(); int low = 0;
ChunkMeta meta = chunk.getMeta(); if (meta != null && meta.getBaseChunkCount() != 0) { for (ChunkMeta.BaseChunk base : meta.getBaseChunkList()) { Long act = startsAt.get(base.getChunkKey()); long exp = position - base.getRelativeStart();
ChunkMeta meta = chunk.getMeta(); if (meta != null && meta.getBaseChunkCount() != 0) { for (ChunkMeta.BaseChunk base : meta.getBaseChunkList()) { Long act = startsAt.get(base.getChunkKey()); long exp = position - base.getRelativeStart();
@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; }
@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; }