Codota Logo
GitStore$RefData$Builder.setSymref
Code IndexAdd Codota to your IDE (free)

How to use
setSymref
method
in
org.eclipse.jgit.generated.storage.dht.proto.GitStore$RefData$Builder

Best Java code snippets using org.eclipse.jgit.generated.storage.dht.proto.GitStore$RefData$Builder.setSymref (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit.generated.storage.dht.proto

public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData other) {
 if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.getDefaultInstance()) return this;
 if (other.hasSequence()) {
  setSequence(other.getSequence());
 }
 if (other.hasSymref()) {
  setSymref(other.getSymref());
 }
 if (other.hasTarget()) {
  mergeTarget(other.getTarget());
 }
 if (other.hasIsPeeled()) {
  setIsPeeled(other.getIsPeeled());
 }
 if (other.hasPeeled()) {
  mergePeeled(other.getPeeled());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
protected Result doLink(String target) throws IOException {
  try {
    RefData.Builder d = RefData.newBuilder(oldData);
    clearRefData(d);
    updateSequence(d);
    d.setSymref(target);
    newData = d.build();
    boolean r = db.ref().compareAndPut(refKey, oldData, newData);
    if (r) {
      getRefDatabase().stored(dstRef.getName(), newData);
      if (getRef().getStorage() == Ref.Storage.NEW)
        return Result.NEW;
      return Result.FORCED;
    } else {
      getRefDatabase().clearCache();
      return Result.LOCK_FAILURE;
    }
  } catch (TimeoutException e) {
    return Result.IO_FAILURE;
  }
}
origin: com.madgag/org.eclipse.jgit.generated.storage.dht.proto

public Builder mergeFrom(org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData other) {
 if (other == org.eclipse.jgit.generated.storage.dht.proto.GitStore.RefData.getDefaultInstance()) return this;
 if (other.hasSequence()) {
  setSequence(other.getSequence());
 }
 if (other.hasSymref()) {
  setSymref(other.getSymref());
 }
 if (other.hasTarget()) {
  mergeTarget(other.getTarget());
 }
 if (other.hasIsPeeled()) {
  setIsPeeled(other.getIsPeeled());
 }
 if (other.hasPeeled()) {
  mergePeeled(other.getPeeled());
 }
 this.mergeUnknownFields(other.getUnknownFields());
 return this;
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
protected Result doLink(String target) throws IOException {
  try {
    RefData.Builder d = RefData.newBuilder(oldData);
    clearRefData(d);
    updateSequence(d);
    d.setSymref(target);
    newData = d.build();
    boolean r = db.ref().compareAndPut(refKey, oldData, newData);
    if (r) {
      getRefDatabase().stored(dstRef.getName(), newData);
      if (getRef().getStorage() == Ref.Storage.NEW)
        return Result.NEW;
      return Result.FORCED;
    } else {
      getRefDatabase().clearCache();
      return Result.LOCK_FAILURE;
    }
  } catch (TimeoutException e) {
    return Result.IO_FAILURE;
  }
}
org.eclipse.jgit.generated.storage.dht.protoGitStore$RefData$BuildersetSymref

Popular methods of GitStore$RefData$Builder

  • setIsPeeled
  • setSequence
  • setTarget
  • <init>
  • build
  • buildPartial
  • clearIsPeeled
  • clearPeeled
  • clearSymref
  • clearTarget
  • create
  • getParentForChildren
  • create,
  • getParentForChildren,
  • getPeeled,
  • getPeeledBuilder,
  • getPeeledFieldBuilder,
  • getSequence,
  • getTarget,
  • getTargetBuilder,
  • getTargetFieldBuilder

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now