public int compare(BaseChunk a, BaseChunk b) { return Long.signum(a.getRelativeStart() - b.getRelativeStart()); } });
public int compare(BaseChunk a, BaseChunk b) { return Long.signum(a.getRelativeStart() - b.getRelativeStart()); } });
final BaseChunk base = baseChunks.get(mid); if (position > base.getRelativeStart()) { low = mid + 1; } else if (mid == 0 || position == base.getRelativeStart()) { return base; } else if (baseChunks.get(mid - 1).getRelativeStart() < position) { return base;
base); baseChunkKey = ChunkKey.fromString(baseChunk.getChunkKey()); basePosInChunk = (int) (baseChunk.getRelativeStart() - base);
base); baseChunkKey = ChunkKey.fromString(baseChunk.getChunkKey()); basePosInChunk = (int) (baseChunk.getRelativeStart() - base);
final BaseChunk base = baseChunks.get(mid); if (position > base.getRelativeStart()) { low = mid + 1; } else if (mid == 0 || position == base.getRelativeStart()) { return base; } else if (baseChunks.get(mid - 1).getRelativeStart() < position) { return base;
for (ChunkMeta.BaseChunk base : meta.getBaseChunkList()) { Long act = startsAt.get(base.getChunkKey()); long exp = position - base.getRelativeStart();
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.BaseChunk)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk) obj; boolean result = true; result = result && (hasRelativeStart() == other.hasRelativeStart()); if (hasRelativeStart()) { result = result && (getRelativeStart() == other.getRelativeStart()); } result = result && (hasChunkKey() == other.hasChunkKey()); if (hasChunkKey()) { result = result && getChunkKey() .equals(other.getChunkKey()); } 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.BaseChunk)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk) obj; boolean result = true; result = result && (hasRelativeStart() == other.hasRelativeStart()); if (hasRelativeStart()) { result = result && (getRelativeStart() == other.getRelativeStart()); } result = result && (hasChunkKey() == other.hasChunkKey()); if (hasChunkKey()) { result = result && getChunkKey() .equals(other.getChunkKey()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasRelativeStart()) { hash = (37 * hash) + RELATIVE_START_FIELD_NUMBER; hash = (53 * hash) + hashLong(getRelativeStart()); } if (hasChunkKey()) { hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER; hash = (53 * hash) + getChunkKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasRelativeStart()) { hash = (37 * hash) + RELATIVE_START_FIELD_NUMBER; hash = (53 * hash) + hashLong(getRelativeStart()); } if (hasChunkKey()) { hash = (37 * hash) + CHUNK_KEY_FIELD_NUMBER; hash = (53 * hash) + getChunkKey().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.getDefaultInstance()) return this; if (other.hasRelativeStart()) { setRelativeStart(other.getRelativeStart()); } if (other.hasChunkKey()) { setChunkKey(other.getChunkKey()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk other) { if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.BaseChunk.getDefaultInstance()) return this; if (other.hasRelativeStart()) { setRelativeStart(other.getRelativeStart()); } if (other.hasChunkKey()) { setChunkKey(other.getChunkKey()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }