Codota Logo
DirCacheTree.validate
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain DirCacheTree
private void myMethod () {
DirCacheTree d =
  • Codota Iconnew DirCacheTree()
  • Codota IconDirCache dirCache;dirCache.getCacheTree(true)
  • Codota Iconnew DirCacheTree(in, new MutableInteger(), null)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Obtain (or build) the current cache tree structure.
 * <p>
 * This method can optionally recreate the cache tree, without flushing the
 * tree objects themselves to disk.
 *
 * @param build
 *            if true and the cache tree is not present in the index it will
 *            be generated and returned to the caller.
 * @return the cache tree; null if there is no current cache tree available
 *         and <code>build</code> was false.
 */
public DirCacheTree getCacheTree(boolean build) {
  if (build) {
    if (tree == null)
      tree = new DirCacheTree();
    tree.validate(sortedEntries, entryCnt, 0, 0);
  }
  return tree;
}
origin: org.eclipse.jgit/org.eclipse.jgit

st.validate(cache, cCnt, cIdx, pathOff + st.nameLength() + 1);
cIdx += st.entrySpan;
entrySpan += st.entrySpan;
origin: sonia.jgit/org.eclipse.jgit

/**
 * Obtain (or build) the current cache tree structure.
 * <p>
 * This method can optionally recreate the cache tree, without flushing the
 * tree objects themselves to disk.
 *
 * @param build
 *            if true and the cache tree is not present in the index it will
 *            be generated and returned to the caller.
 * @return the cache tree; null if there is no current cache tree available
 *         and <code>build</code> was false.
 */
public DirCacheTree getCacheTree(final boolean build) {
  if (build) {
    if (tree == null)
      tree = new DirCacheTree();
    tree.validate(sortedEntries, entryCnt, 0, 0);
  }
  return tree;
}
origin: berlam/github-bucket

/**
 * Obtain (or build) the current cache tree structure.
 * <p>
 * This method can optionally recreate the cache tree, without flushing the
 * tree objects themselves to disk.
 *
 * @param build
 *            if true and the cache tree is not present in the index it will
 *            be generated and returned to the caller.
 * @return the cache tree; null if there is no current cache tree available
 *         and <code>build</code> was false.
 */
public DirCacheTree getCacheTree(boolean build) {
  if (build) {
    if (tree == null)
      tree = new DirCacheTree();
    tree.validate(sortedEntries, entryCnt, 0, 0);
  }
  return tree;
}
origin: sonia.jgit/org.eclipse.jgit

st.validate(cache, cCnt, cIdx, pathOff + st.nameLength() + 1);
cIdx += st.entrySpan;
entrySpan += st.entrySpan;
origin: berlam/github-bucket

st.validate(cache, cCnt, cIdx, pathOff + st.nameLength() + 1);
cIdx += st.entrySpan;
entrySpan += st.entrySpan;
org.eclipse.jgit.dircacheDirCacheTreevalidate

Javadoc

Update (if necessary) this tree's entrySpan.

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>
  • appendName
  • 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
  • isValid,
  • nameLength,
  • namecmp,
  • peq,
  • removeChild,
  • slash,
  • write,
  • writeTree,
  • getPathString

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JOptionPane (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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