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

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

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

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

mergeTreePrefetch(other.getTreePrefetch());
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

mergeTreePrefetch(other.getTreePrefetch());
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 (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;
}
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)) {
  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;
}
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)) {
  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;
}
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 (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;
}
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.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$ChunkMetagetTreePrefetch

Popular methods of GitStore$ChunkMeta

  • getBaseChunkCount
  • getBaseChunkList
  • getCommitPrefetch
  • getFragmentCount
  • getSerializedSize
  • newBuilder
  • <init>
  • equals
  • getBaseChunk
  • getDefaultInstance
  • getDescriptor
  • getDescriptorForType
  • getDescriptor,
  • getDescriptorForType,
  • getFragment,
  • getFragmentList,
  • getUnknownFields,
  • hasCommitPrefetch,
  • hasTreePrefetch,
  • hashCode,
  • isInitialized

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
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