raccoon.core.uitest.util
Class CFSequenceComparator

java.lang.Object
  extended by raccoon.core.uitest.util.CFSequenceComparator
All Implemented Interfaces:
java.util.Comparator

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

The comparator implementation for the class ComponentFile. This comparator compares the sequence number of the given objects which are supposed to be instances of ComponentFile

Since:
Raccoon v0.7
Version:
$Id: CFSequenceComparator.java,v 1.1 2004/08/08 20:19:20 crouvrais Exp $
Author:
Cedric ROUVRAIS

Constructor Summary
CFSequenceComparator()
           
 
Method Summary
 int compare(java.lang.Object pObject1, java.lang.Object pObject2)
          Compares its two arguments for order.
 
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
 

Constructor Detail

CFSequenceComparator

public CFSequenceComparator()
Method Detail

compare

public int compare(java.lang.Object pObject1,
                   java.lang.Object pObject2)
            throws java.lang.ClassCastException
Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Note: this comparator imposes orderings that are inconsistent with equals.

Specified by:
compare in interface java.util.Comparator
Parameters:
pObject1 - the first object to be compared.
pObject2 - the second object to be compared.
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
Throws:
java.lang.ClassCastException - if the arguments' types prevent them from being compared by this Comparator.


Copyright null null. All Rights Reserved.