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

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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