congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • 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
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JTable (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • PhpStorm for WordPress
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