baobab.bio.permutation
Class BPGraphBlockComparator

java.lang.Object
  extended by baobab.bio.permutation.BPGraphBlockComparator
All Implemented Interfaces:
java.util.Comparator

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

The BPGraphBlockComparator class represents a comparator of two elementary blocks of a signed permutation breakpoint graph

Author:
Marilia D. V. Braga

Constructor Summary
BPGraphBlockComparator()
           
 
Method Summary
 int compare(java.lang.Object object1, java.lang.Object object2)
          Compares two blocks
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

BPGraphBlockComparator

public BPGraphBlockComparator()
Method Detail

compare

public int compare(java.lang.Object object1,
                   java.lang.Object object2)
Compares two blocks

Specified by:
compare in interface java.util.Comparator
Parameters:
object1 - the first block
object2 - the second block
Returns:
the result of the comparison, as an int