congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
DirCacheTree.isValid
Code IndexAdd Tabnine 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)

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
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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