All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.dagere.peass.dependencyprocessors.CommitByNameComparator Maven / Gradle / Ivy

The newest version!
package de.dagere.peass.dependencyprocessors;

import java.util.LinkedList;

/**
 * A comparator that guarantees deterministic order, but not by the original list
 * @author DaGeRe
 *
 */
public class CommitByNameComparator extends CommitComparatorInstance {
   
   public static final CommitByNameComparator INSTANCE = new CommitByNameComparator();
   
   private CommitByNameComparator() {
      super(new LinkedList<>());
   }

   @Override
   public int compare(String commit1, String commit2) {
      return commit1.compareTo(commit2);
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy