Codota Logo
BlockRevQueue$BlockFreeList.newBlock
Code IndexAdd Codota to your IDE (free)

How to use
newBlock
method
in
org.eclipse.jgit.revwalk.BlockRevQueue$BlockFreeList

Best Java code snippets using org.eclipse.jgit.revwalk.BlockRevQueue$BlockFreeList.newBlock (Showing top 12 results out of 315)

  • Common ways to obtain BlockRevQueue$BlockFreeList
private void myMethod () {
BlockRevQueue$BlockFreeList b =
  • Codota Iconnew BlockFreeList()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
public void add(RevCommit c) {
  Block b = head;
  if (b == null || !b.canUnpop()) {
    b = free.newBlock();
    b.resetToEnd();
    b.next = head;
    head = b;
  }
  b.unpop(c);
}
origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Insert the commit pointer at the front of the queue.
 *
 * @param c
 *            the commit to insert into the queue.
 */
public void unpop(RevCommit c) {
  Block b = head;
  if (b == null) {
    b = free.newBlock();
    b.resetToMiddle();
    b.add(c);
    head = b;
    tail = b;
    return;
  } else if (b.canUnpop()) {
    b.unpop(c);
    return;
  }
  b = free.newBlock();
  b.resetToEnd();
  b.unpop(c);
  b.next = head;
  head = b;
}
origin: theonedev/onedev

/** {@inheritDoc} */
@Override
public void add(RevCommit c) {
  Block b = head;
  if (b == null || !b.canUnpop()) {
    b = free.newBlock();
    b.resetToEnd();
    b.next = head;
    head = b;
  }
  b.unpop(c);
}
origin: sonia.jgit/org.eclipse.jgit

public void add(final RevCommit c) {
  Block b = head;
  if (b == null || !b.canUnpop()) {
    b = free.newBlock();
    b.resetToEnd();
    b.next = head;
    head = b;
  }
  b.unpop(c);
}
origin: berlam/github-bucket

/** {@inheritDoc} */
@Override
public void add(RevCommit c) {
  Block b = head;
  if (b == null || !b.canUnpop()) {
    b = free.newBlock();
    b.resetToEnd();
    b.next = head;
    head = b;
  }
  b.unpop(c);
}
origin: org.eclipse.jgit/org.eclipse.jgit

/** {@inheritDoc} */
@Override
public void add(RevCommit c) {
  Block b = tail;
  if (b == null) {
    b = free.newBlock();
    b.add(c);
    head = b;
    tail = b;
    return;
  } else if (b.isFull()) {
    b = free.newBlock();
    tail.next = b;
    tail = b;
  }
  b.add(c);
}
origin: theonedev/onedev

/** {@inheritDoc} */
@Override
public void add(RevCommit c) {
  Block b = tail;
  if (b == null) {
    b = free.newBlock();
    b.add(c);
    head = b;
    tail = b;
    return;
  } else if (b.isFull()) {
    b = free.newBlock();
    tail.next = b;
    tail = b;
  }
  b.add(c);
}
origin: berlam/github-bucket

/** {@inheritDoc} */
@Override
public void add(RevCommit c) {
  Block b = tail;
  if (b == null) {
    b = free.newBlock();
    b.add(c);
    head = b;
    tail = b;
    return;
  } else if (b.isFull()) {
    b = free.newBlock();
    tail.next = b;
    tail = b;
  }
  b.add(c);
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * Insert the commit pointer at the front of the queue.
 *
 * @param c
 *            the commit to insert into the queue.
 */
public void unpop(final RevCommit c) {
  Block b = head;
  if (b == null) {
    b = free.newBlock();
    b.resetToMiddle();
    b.add(c);
    head = b;
    tail = b;
    return;
  } else if (b.canUnpop()) {
    b.unpop(c);
    return;
  }
  b = free.newBlock();
  b.resetToEnd();
  b.unpop(c);
  b.next = head;
  head = b;
}
origin: berlam/github-bucket

/**
 * Insert the commit pointer at the front of the queue.
 *
 * @param c
 *            the commit to insert into the queue.
 */
public void unpop(RevCommit c) {
  Block b = head;
  if (b == null) {
    b = free.newBlock();
    b.resetToMiddle();
    b.add(c);
    head = b;
    tail = b;
    return;
  } else if (b.canUnpop()) {
    b.unpop(c);
    return;
  }
  b = free.newBlock();
  b.resetToEnd();
  b.unpop(c);
  b.next = head;
  head = b;
}
origin: theonedev/onedev

/**
 * Insert the commit pointer at the front of the queue.
 *
 * @param c
 *            the commit to insert into the queue.
 */
public void unpop(RevCommit c) {
  Block b = head;
  if (b == null) {
    b = free.newBlock();
    b.resetToMiddle();
    b.add(c);
    head = b;
    tail = b;
    return;
  } else if (b.canUnpop()) {
    b.unpop(c);
    return;
  }
  b = free.newBlock();
  b.resetToEnd();
  b.unpop(c);
  b.next = head;
  head = b;
}
origin: sonia.jgit/org.eclipse.jgit

public void add(final RevCommit c) {
  Block b = tail;
  if (b == null) {
    b = free.newBlock();
    b.add(c);
    head = b;
    tail = b;
    return;
  } else if (b.isFull()) {
    b = free.newBlock();
    tail.next = b;
    tail = b;
  }
  b.add(c);
}
org.eclipse.jgit.revwalkBlockRevQueue$BlockFreeListnewBlock

Popular methods of BlockRevQueue$BlockFreeList

  • <init>
  • clear
  • freeBlock

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • setContentView (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
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