congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
GitStore$ChunkMeta$PrefetchHint.getEdgeCount
Code IndexAdd Tabnine to your IDE (free)

How to use
getEdgeCount
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.getEdgeCount (Showing top 4 results out of 315)

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

Popular methods of GitStore$ChunkMeta$PrefetchHint

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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