congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AsyncObjectLoaderQueue.next
Code IndexAdd Tabnine to your IDE (free)

How to use
next
method
in
org.eclipse.jgit.lib.AsyncObjectLoaderQueue

Best Java code snippets using org.eclipse.jgit.lib.AsyncObjectLoaderQueue.next (Showing top 4 results out of 315)

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

@Override
public RevObject next() throws MissingObjectException,
    IncorrectObjectTypeException, IOException {
  if (objItr.hasNext())
    return objItr.next();
  if (!lItr.next())
    return null;
  ObjectId id = lItr.getObjectId();
  ObjectLoader ldr = lItr.open();
  RevObject r = objects.get(id);
  if (r == null)
    r = parseNew(id, ldr);
  else if (r instanceof RevCommit) {
    byte[] raw = ldr.getCachedBytes();
    ((RevCommit) r).parseCanonical(RevWalk.this, raw);
  } else if (r instanceof RevTag) {
    byte[] raw = ldr.getCachedBytes();
    ((RevTag) r).parseCanonical(RevWalk.this, raw);
  } else
    r.flags |= PARSED;
  return r;
}
origin: sonia.jgit/org.eclipse.jgit

public RevObject next() throws MissingObjectException,
    IncorrectObjectTypeException, IOException {
  if (objItr.hasNext())
    return objItr.next();
  if (!lItr.next())
    return null;
  ObjectId id = lItr.getObjectId();
  ObjectLoader ldr = lItr.open();
  RevObject r = objects.get(id);
  if (r == null)
    r = parseNew(id, ldr);
  else if (r instanceof RevCommit) {
    byte[] raw = ldr.getCachedBytes();
    ((RevCommit) r).parseCanonical(RevWalk.this, raw);
  } else if (r instanceof RevTag) {
    byte[] raw = ldr.getCachedBytes();
    ((RevTag) r).parseCanonical(RevWalk.this, raw);
  } else
    r.flags |= PARSED;
  return r;
}
origin: theonedev/onedev

@Override
public RevObject next() throws MissingObjectException,
    IncorrectObjectTypeException, IOException {
  if (objItr.hasNext())
    return objItr.next();
  if (!lItr.next())
    return null;
  ObjectId id = lItr.getObjectId();
  ObjectLoader ldr = lItr.open();
  RevObject r = objects.get(id);
  if (r == null)
    r = parseNew(id, ldr);
  else if (r instanceof RevCommit) {
    byte[] raw = ldr.getCachedBytes();
    ((RevCommit) r).parseCanonical(RevWalk.this, raw);
  } else if (r instanceof RevTag) {
    byte[] raw = ldr.getCachedBytes();
    ((RevTag) r).parseCanonical(RevWalk.this, raw);
  } else
    r.flags |= PARSED;
  return r;
}
origin: berlam/github-bucket

@Override
public RevObject next() throws MissingObjectException,
    IncorrectObjectTypeException, IOException {
  if (objItr.hasNext())
    return objItr.next();
  if (!lItr.next())
    return null;
  ObjectId id = lItr.getObjectId();
  ObjectLoader ldr = lItr.open();
  RevObject r = objects.get(id);
  if (r == null)
    r = parseNew(id, ldr);
  else if (r instanceof RevCommit) {
    byte[] raw = ldr.getCachedBytes();
    ((RevCommit) r).parseCanonical(RevWalk.this, raw);
  } else if (r instanceof RevTag) {
    byte[] raw = ldr.getCachedBytes();
    ((RevTag) r).parseCanonical(RevWalk.this, raw);
  } else
    r.flags |= PARSED;
  return r;
}
org.eclipse.jgit.libAsyncObjectLoaderQueuenext

Javadoc

Position this queue onto the next available result. Even if this method returns true, #open() may still throw org.eclipse.jgit.errors.MissingObjectException if the underlying object database was concurrently modified and the current object is no longer available.

Popular methods of AsyncObjectLoaderQueue

  • cancel
  • getObjectId
  • open
    Obtain a loader to read the object. This method can only be invoked once per result Due to race cond
  • release

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ImageIO (javax.imageio)
  • JComboBox (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 17 Plugins for Android Studio
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