congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DirCacheTree.validate
Code IndexAdd Tabnine 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)

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

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • Kernel (java.awt.image)
  • String (java.lang)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Top 12 Jupyter Notebook Extensions
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