Tabnine Logo
RefComparator.sort
Code IndexAdd Tabnine to your IDE (free)

How to use
sort
method
in
org.eclipse.jgit.lib.RefComparator

Best Java code snippets using org.eclipse.jgit.lib.RefComparator.sort (Showing top 11 results out of 315)

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

/**
 * <p>Constructor for RefWriter.</p>
 *
 * @param refs
 *            the complete set of references. This should have been computed
 *            by applying updates to the advertised refs already discovered.
 */
public RefWriter(Collection<Ref> refs) {
  this.refs = RefComparator.sort(refs);
}
origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * <p>Constructor for RefWriter.</p>
 *
 * @param refs
 *            the complete set of references. This should have been computed
 *            by applying updates to the advertised refs already discovered.
 */
public RefWriter(Map<String, Ref> refs) {
  if (refs instanceof RefMap)
    this.refs = refs.values();
  else
    this.refs = RefComparator.sort(refs.values());
}
origin: berlam/github-bucket

/**
 * <p>Constructor for RefWriter.</p>
 *
 * @param refs
 *            the complete set of references. This should have been computed
 *            by applying updates to the advertised refs already discovered.
 */
public RefWriter(Collection<Ref> refs) {
  this.refs = RefComparator.sort(refs);
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * @param refs
 *            the complete set of references. This should have been computed
 *            by applying updates to the advertised refs already discovered.
 */
public RefWriter(Collection<Ref> refs) {
  this.refs = RefComparator.sort(refs);
}
origin: sonia.jgit/org.eclipse.jgit

/**
 * @param refs
 *            the complete set of references. This should have been computed
 *            by applying updates to the advertised refs already discovered.
 */
public RefWriter(Map<String, Ref> refs) {
  if (refs instanceof RefMap)
    this.refs = refs.values();
  else
    this.refs = RefComparator.sort(refs.values());
}
origin: berlam/github-bucket

/**
 * <p>Constructor for RefWriter.</p>
 *
 * @param refs
 *            the complete set of references. This should have been computed
 *            by applying updates to the advertised refs already discovered.
 */
public RefWriter(Map<String, Ref> refs) {
  if (refs instanceof RefMap)
    this.refs = refs.values();
  else
    this.refs = RefComparator.sort(refs.values());
}
origin: sonia.jgit/org.eclipse.jgit

private Iterable<Ref> getSortedRefs(Map<String, Ref> all) {
  if (all instanceof RefMap
      || (all instanceof SortedMap && ((SortedMap) all).comparator() == null))
    return all.values();
  return RefComparator.sort(all.values());
}
origin: org.eclipse.jgit/org.eclipse.jgit

for (Ref ref : RefComparator.sort(refs)) {
origin: com.madgag/org.eclipse.jgit.pgm

private Iterable<Ref> getSortedRefs() throws Exception {
  Map<String, Ref> all = db.getRefDatabase().getRefs(ALL);
  if (all instanceof RefMap
      || (all instanceof SortedMap && ((SortedMap) all).comparator() == null))
    return all.values();
  return RefComparator.sort(all.values());
}
origin: com.madgag/org.eclipse.jgit.pgm

private void addRefs(final Collection<Ref> refs, final String prefix) {
  for (final Ref ref : RefComparator.sort(refs)) {
    final String name = ref.getName();
    if (name.startsWith(prefix))
      addRef(name.substring(name.indexOf('/', 5) + 1), ref);
  }
}
origin: berlam/github-bucket

for (Ref ref : RefComparator.sort(refs)) {
org.eclipse.jgit.libRefComparatorsort

Javadoc

Sorts the collection of refs, returning a new collection.

Popular methods of RefComparator

  • compareTo
    Compare two references by name.

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now