Tabnine Logo
GitStore$ChunkMeta$PrefetchHint.getEdgeList
Code IndexAdd Tabnine to your IDE (free)

How to use
getEdgeList
method
in
org.eclipse.jgit.generated.storage.dht.proto.GitStore$ChunkMeta$PrefetchHint

Best Java code snippets using org.eclipse.jgit.generated.storage.dht.proto.GitStore$ChunkMeta$PrefetchHint.getEdgeList (Showing top 8 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

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;
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

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;
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

@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;
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

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());
    }
  }
}
origin: com.madgag/org.eclipse.jgit.storage.dht

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());
    }
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

@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;
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

@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;
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

@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;
}
org.eclipse.jgit.generated.storage.dht.protoGitStore$ChunkMeta$PrefetchHintgetEdgeList

Popular methods of GitStore$ChunkMeta$PrefetchHint

  • getEdgeCount
  • getSequentialList
  • <init>
  • equals
  • getDefaultInstance
  • getDescriptor
  • getDescriptorForType
  • getSequentialCount
  • getSerializedSize
  • getUnknownFields
  • hashCode
  • isInitialized
  • hashCode,
  • isInitialized,
  • newBuilder

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • getSystemService (Context)
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JComboBox (javax.swing)
  • JFrame (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now