baobab.bio.permutation
Class BlockComparator

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

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

The BlockComparator class represents a comparator of two elementary blocks of a signed permutation

Version:
1.0, May 2006
Author:
Marilia D. V. Braga

Constructor Summary
BlockComparator()
           
 
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

BlockComparator

public BlockComparator()
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