congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
GitCache$CachedObjectIndex$Builder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
org.eclipse.jgit.generated.storage.dht.proto.GitCache$CachedObjectIndex$Builder

Best Java code snippets using org.eclipse.jgit.generated.storage.dht.proto.GitCache$CachedObjectIndex$Builder.build (Showing top 2 results out of 315)

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

  private byte[] encode(List<ObjectInfo> items) {
    CachedObjectIndex.Builder b;
    b = CachedObjectIndex.newBuilder();
    for (ObjectInfo info : items) {
      CachedObjectIndex.Item.Builder i = b.addItemBuilder();
      i.setChunkKey(info.getChunkKey().asString());
      i.setObjectInfo(info.getData());
      if (0 < info.getTime())
        i.setTime(info.getTime());
    }
    return b.build().toByteArray();
  }
});
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

  private byte[] encode(List<ObjectInfo> items) {
    CachedObjectIndex.Builder b;
    b = CachedObjectIndex.newBuilder();
    for (ObjectInfo info : items) {
      CachedObjectIndex.Item.Builder i = b.addItemBuilder();
      i.setChunkKey(info.getChunkKey().asString());
      i.setObjectInfo(info.getData());
      if (0 < info.getTime())
        i.setTime(info.getTime());
    }
    return b.build().toByteArray();
  }
});
org.eclipse.jgit.generated.storage.dht.protoGitCache$CachedObjectIndex$Builderbuild

Popular methods of GitCache$CachedObjectIndex$Builder

  • <init>
  • addItem
  • addItemBuilder
  • buildPartial
  • create
  • ensureItemIsMutable
  • getItem
  • getItemCount
  • getItemFieldBuilder
  • getParentForChildren
  • getUnknownFields
  • isClean
  • getUnknownFields,
  • isClean,
  • maybeForceBuilderInitialization,
  • mergeDelimitedFrom,
  • mergeFrom,
  • mergeUnknownFields,
  • newUninitializedMessageException,
  • onBuilt,
  • onChanged

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFileChooser (javax.swing)
  • 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