org.mmbase.util
Class RowVectorCompare

java.lang.Object
  |
  +--org.mmbase.util.RowVectorCompare
All Implemented Interfaces:
CompareInterface

public class RowVectorCompare
extends java.lang.Object
implements CompareInterface

RowVectorCompare compares a given row element in two Vectors.


Constructor Summary
RowVectorCompare(int pos)
          Creates a RowVectorCompare.
 
Method Summary
 int compare(java.lang.Object thisOne, java.lang.Object other)
          Make the comparison.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowVectorCompare

public RowVectorCompare(int pos)
Creates a RowVectorCompare.
Parameters:
pos - the position (row number) at which to compare two vectors
Method Detail

compare

public int compare(java.lang.Object thisOne,
                   java.lang.Object other)
Make the comparison. The result is a negative value if the first object is 'smaller' than the second, a positive value if it is 'larger', and 0 if both objects are 'equal'.
Specified by:
compare in interface CompareInterface
Parameters:
thisOne - the first object to compare. should be a Vector.
other - the second object to compare. should be a Vector.
Returns:
the result of the comparison


MMBase 2001