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

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

Best Java code snippets using org.eclipse.jgit.dircache.DirCacheTree.isValid (Showing top 12 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

/** {@inheritDoc} */
@Override
public boolean hasId() {
  if (currentSubtree != null)
    return currentSubtree.isValid();
  return currentEntry != null;
}
origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
public byte[] idBuffer() {
  if (currentSubtree != null)
    return currentSubtree.isValid() ? subtreeId : zeroid;
  if (currentEntry != null)
    return currentEntry.idBuffer();
  return zeroid;
}
origin: org.eclipse.jgit/org.eclipse.jgit

void write(byte[] tmp, OutputStream os) throws IOException {
  int ptr = tmp.length;
  tmp[--ptr] = '\n';
  ptr = RawParseUtils.formatBase10(tmp, ptr, childCnt);
  tmp[--ptr] = ' ';
  ptr = RawParseUtils.formatBase10(tmp, ptr, isValid() ? entrySpan : -1);
  tmp[--ptr] = 0;
  os.write(encodedName);
  os.write(tmp, ptr, tmp.length - ptr);
  if (isValid()) {
    id.copyRawTo(tmp, 0);
    os.write(tmp, 0, Constants.OBJECT_ID_LENGTH);
  }
  for (int i = 0; i < childCnt; i++)
    children[i].write(tmp, os);
}
origin: berlam/github-bucket

/** {@inheritDoc} */
@Override
public boolean hasId() {
  if (currentSubtree != null)
    return currentSubtree.isValid();
  return currentEntry != null;
}
origin: sonia.jgit/org.eclipse.jgit

@Override
public boolean hasId() {
  if (currentSubtree != null)
    return currentSubtree.isValid();
  return currentEntry != null;
}
origin: berlam/github-bucket

/** {@inheritDoc} */
@Override
public byte[] idBuffer() {
  if (currentSubtree != null)
    return currentSubtree.isValid() ? subtreeId : zeroid;
  if (currentEntry != null)
    return currentEntry.idBuffer();
  return zeroid;
}
origin: sonia.jgit/org.eclipse.jgit

@Override
public byte[] idBuffer() {
  if (currentSubtree != null)
    return currentSubtree.isValid() ? subtreeId : zeroid;
  if (currentEntry != null)
    return currentEntry.idBuffer();
  return zeroid;
}
origin: org.eclipse.jgit/org.eclipse.jgit

nextSubtreePos++;
if (s.isValid())
  s.getObjectId().copyRawTo(subtreeId, 0);
mode = FileMode.TREE.getBits();
origin: sonia.jgit/org.eclipse.jgit

void write(final byte[] tmp, final OutputStream os) throws IOException {
  int ptr = tmp.length;
  tmp[--ptr] = '\n';
  ptr = RawParseUtils.formatBase10(tmp, ptr, childCnt);
  tmp[--ptr] = ' ';
  ptr = RawParseUtils.formatBase10(tmp, ptr, isValid() ? entrySpan : -1);
  tmp[--ptr] = 0;
  os.write(encodedName);
  os.write(tmp, ptr, tmp.length - ptr);
  if (isValid()) {
    id.copyRawTo(tmp, 0);
    os.write(tmp, 0, Constants.OBJECT_ID_LENGTH);
  }
  for (int i = 0; i < childCnt; i++)
    children[i].write(tmp, os);
}
origin: berlam/github-bucket

void write(byte[] tmp, OutputStream os) throws IOException {
  int ptr = tmp.length;
  tmp[--ptr] = '\n';
  ptr = RawParseUtils.formatBase10(tmp, ptr, childCnt);
  tmp[--ptr] = ' ';
  ptr = RawParseUtils.formatBase10(tmp, ptr, isValid() ? entrySpan : -1);
  tmp[--ptr] = 0;
  os.write(encodedName);
  os.write(tmp, ptr, tmp.length - ptr);
  if (isValid()) {
    id.copyRawTo(tmp, 0);
    os.write(tmp, 0, Constants.OBJECT_ID_LENGTH);
  }
  for (int i = 0; i < childCnt; i++)
    children[i].write(tmp, os);
}
origin: berlam/github-bucket

nextSubtreePos++;
if (s.isValid())
  s.getObjectId().copyRawTo(subtreeId, 0);
mode = FileMode.TREE.getBits();
origin: sonia.jgit/org.eclipse.jgit

nextSubtreePos++;
if (s.isValid())
  s.getObjectId().copyRawTo(subtreeId, 0);
mode = FileMode.TREE.getBits();
org.eclipse.jgit.dircacheDirCacheTreeisValid

Javadoc

Determine if this cache is currently valid.

A valid cache tree knows how many org.eclipse.jgit.dircache.DirCacheEntry instances from the parent org.eclipse.jgit.dircache.DirCache reside within this tree (recursively enumerated). It also knows the object id of the tree, as the tree should be readily available from the repository's object database.

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • notifyDataSetChanged (ArrayAdapter)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • 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