fi.iki.hsivonen.xml.checker.table
Class VerticalCellComparator

java.lang.Object
  extended by fi.iki.hsivonen.xml.checker.table.VerticalCellComparator
All Implemented Interfaces:
Comparator<Cell>

final class VerticalCellComparator
extends Object
implements Comparator<Cell>

Compares cells first by their bottom field and then by their left field. The cells can never be equal.

Version:
$Id: VerticalCellComparator.java,v 1.5 2006/12/01 12:34:30 hsivonen Exp $
Author:
hsivonen

Field Summary
static VerticalCellComparator THE_INSTANCE
           
 
Constructor Summary
private VerticalCellComparator()
           
 
Method Summary
 int compare(Cell cell0, Cell cell1)
           
 
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
 

Field Detail

THE_INSTANCE

public static final VerticalCellComparator THE_INSTANCE
Constructor Detail

VerticalCellComparator

private VerticalCellComparator()
Method Detail

compare

public final int compare(Cell cell0,
                         Cell cell1)
Specified by:
compare in interface Comparator<Cell>