Package org.biojava.nbio.core.sequence
Class SequenceComparator
- java.lang.Object
-
- org.biojava.nbio.core.sequence.SequenceComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<AbstractSequence<?>>
public class SequenceComparator extends Object implements Comparator<AbstractSequence<?>>, Serializable
Used to sort sequences in ascending order of bioBegin property.- Author:
- Scooter Willis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SequenceComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(AbstractSequence<?> o1, AbstractSequence<?> 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
SequenceComparator
public SequenceComparator()
-
-
Method Detail
-
compare
public int compare(AbstractSequence<?> o1, AbstractSequence<?> o2)
- Specified by:
compare
in interfaceComparator<AbstractSequence<?>>
-
-