public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < edge_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(edge_.getByteString(i)); } size += dataSize; size += 1 * getEdgeList().size(); } { int dataSize = 0; for (int i = 0; i < sequential_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(sequential_.getByteString(i)); } size += dataSize; size += 1 * getSequentialList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < edge_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(edge_.getByteString(i)); } size += dataSize; size += 1 * getEdgeList().size(); } { int dataSize = 0; for (int i = 0; i < sequential_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(sequential_.getByteString(i)); } size += dataSize; size += 1 * getSequentialList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getEdgeCount() > 0) { hash = (37 * hash) + EDGE_FIELD_NUMBER; hash = (53 * hash) + getEdgeList().hashCode(); } if (getSequentialCount() > 0) { hash = (37 * hash) + SEQUENTIAL_FIELD_NUMBER; hash = (53 * hash) + getSequentialList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }
void push(ChunkMeta meta) { if (meta == null) return; ChunkMeta.PrefetchHint hint; switch (objectType) { case OBJ_COMMIT: hint = meta.getCommitPrefetch(); break; case OBJ_TREE: hint = meta.getTreePrefetch(); break; default: return; } if (hint != null) { synchronized (this) { if (followEdgeHints && 0 < hint.getEdgeCount()) push(hint.getEdgeList()); else push(hint.getSequentialList()); } } }
void push(ChunkMeta meta) { if (meta == null) return; ChunkMeta.PrefetchHint hint; switch (objectType) { case OBJ_COMMIT: hint = meta.getCommitPrefetch(); break; case OBJ_TREE: hint = meta.getTreePrefetch(); break; default: return; } if (hint != null) { synchronized (this) { if (followEdgeHints && 0 < hint.getEdgeCount()) push(hint.getEdgeList()); else push(hint.getSequentialList()); } } }
@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.PrefetchHint)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint) obj; boolean result = true; result = result && getEdgeList() .equals(other.getEdgeList()); result = result && getSequentialList() .equals(other.getSequentialList()); 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.PrefetchHint)) { return super.equals(obj); } org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint other = (org.eclipse.jgit.generated.storage.dht.proto.GitStore.ChunkMeta.PrefetchHint) obj; boolean result = true; result = result && getEdgeList() .equals(other.getEdgeList()); result = result && getSequentialList() .equals(other.getSequentialList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getEdgeCount() > 0) { hash = (37 * hash) + EDGE_FIELD_NUMBER; hash = (53 * hash) + getEdgeList().hashCode(); } if (getSequentialCount() > 0) { hash = (37 * hash) + SEQUENTIAL_FIELD_NUMBER; hash = (53 * hash) + getSequentialList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); return hash; }