org.biojava.bio.seq
Class ByLocationMinMaxComparator

java.lang.Object
  extended by org.biojava.bio.seq.ByLocationMinMaxComparator
All Implemented Interfaces:
java.util.Comparator

public class ByLocationMinMaxComparator
extends java.lang.Object
implements java.util.Comparator

A Comparator similar to Feature.ByLocationComparator except that the min and max positions of the location are both compared

Since:
1.5
Author:
Mark Southern

Constructor Summary
ByLocationMinMaxComparator()
           
 
Method Summary
static java.util.Comparator comparator()
           
 int compare(java.lang.Object o1, java.lang.Object 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

ByLocationMinMaxComparator

public ByLocationMinMaxComparator()
Method Detail

comparator

public static java.util.Comparator comparator()

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator