javatools.util
Class ArrayComparator

java.lang.Object
  |
  +--javatools.util.ArrayComparator
All Implemented Interfaces:
java.util.Comparator

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

Compares an array of objects, object by object.


Constructor Summary
ArrayComparator()
          Creates new ForeignKeyComparator
 
Method Summary
 int compare(java.lang.Object obj, java.lang.Object obj1)
          Compares two arrays.
 boolean equals(java.lang.Object obj)
          Checks if this object is equal to something.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayComparator

public ArrayComparator()
Creates new ForeignKeyComparator

Method Detail

compare

public int compare(java.lang.Object obj,
                   java.lang.Object obj1)
Compares two arrays.

Specified by:
compare in interface java.util.Comparator
Parameters:
obj - The first term.
obj1 - The second term.
Returns:
Returns the compare value of the last different items, or 0 if they are equal.

equals

public boolean equals(java.lang.Object obj)
Checks if this object is equal to something.

Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object
Parameters:
obj - The object to compare to.
Returns:
true: yes, the objects are equal; false: no, they are not.