de.lmu.ifi.dbs.elki.data
Class Cluster.PartialComparator

java.lang.Object
  extended by 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.


Constructor Summary
Cluster.PartialComparator()
           
 
Method Summary
 int compare(Cluster<?> o1, Cluster<?> o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

Cluster.PartialComparator

public Cluster.PartialComparator()
Method Detail

compare

public int compare(Cluster<?> o1,
                   Cluster<?> o2)
Specified by:
compare in interface Comparator<Cluster<?>>

Release 0.4.0 (2011-09-20_1324)