edu.ucsb.nceas.morpho.query
Class CellComparator

java.lang.Object
  extended byedu.ucsb.nceas.morpho.query.CellComparator
All Implemented Interfaces:
java.util.Comparator

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

This class to compare two vecotors which is two dimentions


Field Summary
protected  boolean ascending
           
protected  int indexOfRow
           
 
Constructor Summary
CellComparator(int myIndexOfRow, boolean myAscending)
          Constructor of cellComparator
 
Method Summary
 int compare(java.lang.Object object1, java.lang.Object object2)
          The method to compare twso vectors
 
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

indexOfRow

protected int indexOfRow

ascending

protected boolean ascending
Constructor Detail

CellComparator

public CellComparator(int myIndexOfRow,
                      boolean myAscending)
Constructor of cellComparator

Parameters:
myAscending - the order which need to compare
Method Detail

compare

public int compare(java.lang.Object object1,
                   java.lang.Object object2)
The method to compare twso vectors

Specified by:
compare in interface java.util.Comparator


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.