de.lmu.ifi.dbs.elki.data
Class Cluster.PartialComparator
java.lang.Object
de.lmu.ifi.dbs.elki.data.Cluster.PartialComparator
- All Implemented Interfaces:
- Comparator<Cluster<?>>
- Enclosing class:
- Cluster<M extends Model>
public static class Cluster.PartialComparator
- extends Object
- implements Comparator<Cluster<?>>
A partial comparator for Clusters, based on their name. Useful for sorting
clusters. Do NOT use in e.g. a TreeSet since it is
inconsistent with equals.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cluster.PartialComparator
public Cluster.PartialComparator()
compare
public int compare(Cluster<?> o1,
Cluster<?> o2)
- Specified by:
compare
in interface Comparator<Cluster<?>>