Creating a Taxonomic e-Science

org.cateproject.controller.taxon
Class BotanicalSynonymComparator

java.lang.Object
  extended by org.cateproject.controller.taxon.BotanicalSynonymComparator
All Implemented Interfaces:
Comparator<eu.etaxonomy.cdm.model.taxon.SynonymRelationship>

public class BotanicalSynonymComparator
extends Object
implements Comparator<eu.etaxonomy.cdm.model.taxon.SynonymRelationship>


Constructor Summary
BotanicalSynonymComparator()
           
 
Method Summary
 int compare(eu.etaxonomy.cdm.model.taxon.SynonymRelationship o1, eu.etaxonomy.cdm.model.taxon.SynonymRelationship o2)
          Comparator that sorts by (1) the age of the homotypical group, youngest first, followed by the age of the name within that homotypical group, youngest first
 
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

BotanicalSynonymComparator

public BotanicalSynonymComparator()
Method Detail

compare

public int compare(eu.etaxonomy.cdm.model.taxon.SynonymRelationship o1,
                   eu.etaxonomy.cdm.model.taxon.SynonymRelationship o2)
Comparator that sorts by (1) the age of the homotypical group, youngest first, followed by the age of the name within that homotypical group, youngest first

Specified by:
compare in interface Comparator<eu.etaxonomy.cdm.model.taxon.SynonymRelationship>

Creating a Taxonomic e-Science

Copyright © 2010. All Rights Reserved.