congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DirCacheTree.appendName
Code IndexAdd Tabnine to your IDE (free)

How to use
appendName
method
in
org.eclipse.jgit.dircache.DirCacheTree

Best Java code snippets using org.eclipse.jgit.dircache.DirCacheTree.appendName (Showing top 6 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Get the tree's path within the repository.
 * <p>
 * This method is not very efficient and is primarily meant for debugging
 * and final output generation. Applications should try to avoid calling it,
 * and if invoked do so only once per interesting entry, where the name is
 * absolutely required for correct function.
 *
 * @return path of the tree, relative to the repository root. If this is not
 *         the root tree the path ends with '/'. The root tree's path string
 *         is the empty string ("").
 */
public String getPathString() {
  final StringBuilder r = new StringBuilder();
  appendName(r);
  return r.toString();
}
origin: org.eclipse.jgit/org.eclipse.jgit

private void appendName(StringBuilder r) {
  if (parent != null) {
    parent.appendName(r);
    r.append(getNameString());
    r.append('/');
  } else if (nameLength() > 0) {
    r.append(getNameString());
    r.append('/');
  }
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * Get the tree's path within the repository.
 * <p>
 * This method is not very efficient and is primarily meant for debugging
 * and final output generation. Applications should try to avoid calling it,
 * and if invoked do so only once per interesting entry, where the name is
 * absolutely required for correct function.
 *
 * @return path of the tree, relative to the repository root. If this is not
 *         the root tree the path ends with '/'. The root tree's path string
 *         is the empty string ("").
 */
public String getPathString() {
  final StringBuilder r = new StringBuilder();
  appendName(r);
  return r.toString();
}
origin: berlam/github-bucket

/**
 * Get the tree's path within the repository.
 * <p>
 * This method is not very efficient and is primarily meant for debugging
 * and final output generation. Applications should try to avoid calling it,
 * and if invoked do so only once per interesting entry, where the name is
 * absolutely required for correct function.
 *
 * @return path of the tree, relative to the repository root. If this is not
 *         the root tree the path ends with '/'. The root tree's path string
 *         is the empty string ("").
 */
public String getPathString() {
  final StringBuilder r = new StringBuilder();
  appendName(r);
  return r.toString();
}
origin: sonia.jgit/org.eclipse.jgit

private void appendName(final StringBuilder r) {
  if (parent != null) {
    parent.appendName(r);
    r.append(getNameString());
    r.append('/');
  } else if (nameLength() > 0) {
    r.append(getNameString());
    r.append('/');
  }
}
origin: berlam/github-bucket

private void appendName(StringBuilder r) {
  if (parent != null) {
    parent.appendName(r);
    r.append(getNameString());
    r.append('/');
  } else if (nameLength() > 0) {
    r.append(getNameString());
    r.append('/');
  }
}
org.eclipse.jgit.dircacheDirCacheTreeappendName

Popular methods of DirCacheTree

  • getChild
    Get the i-th child cache tree.
  • getChildCount
    Get the number of cached subtrees contained within this tree.
  • getEntrySpan
    Get the number of entries this tree spans within the DirCache. If this tree is not valid (see #isVal
  • <init>
  • computeSize
  • contains
  • getNameString
    Get the tree's name within its parent. This method is not very efficient and is primarily meant for
  • getObjectId
    Get the tree's ObjectId. If #isValid() returns false this method will return null.
  • insertChild
  • isValid
    Determine if this cache is currently valid. A valid cache tree knows how many org.eclipse.jgit.dirca
  • nameLength
  • namecmp
  • nameLength,
  • namecmp,
  • peq,
  • removeChild,
  • slash,
  • validate,
  • write,
  • writeTree,
  • getPathString

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 17 PhpStorm Plugins
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