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

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

final class HorizontalCellComparator
extends Object
implements Comparator<Cell>

Compares cells using their left field. The cells can never be equal.

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

Field Summary
static HorizontalCellComparator THE_INSTANCE
           
 
Constructor Summary
private HorizontalCellComparator()
           
 
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 HorizontalCellComparator THE_INSTANCE
Constructor Detail

HorizontalCellComparator

private HorizontalCellComparator()
Method Detail

compare

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