| |
|
| java.lang.Object org.geotools.factory.FactoryComparator
FactoryComparator | final class FactoryComparator (Code) | | Compares two factories for equality.
Used internally for
AbstractFactory.equals implementation only.
version: $Id: FactoryComparator.java 22443 2006-10-27 20:47:22Z desruisseaux $ author: Martin Desruisseaux |
Method Summary | |
boolean | compare(Set done) Returns
true if
f1 and
f2 are equals.
Parameters: done - An initially empty set. | public boolean | equals(Object object) For internal use only. | public int | hashCode() For internal use only. |
FactoryComparator | FactoryComparator(Factory f1, Factory f2)(Code) | | Prepare a comparaison between the two specified factories.
|
compare | boolean compare(Set done)(Code) | | Returns
true if
f1 and
f2 are equals.
Parameters: done - An initially empty set. Used internally for preventing infinite recursivity. |
equals | public boolean equals(Object object)(Code) | | For internal use only. This implementation assumes that
f1.equals(f2) is symetric (i.e. equivalents to
f2.equals(f1) ).
|
hashCode | public int hashCode()(Code) | | For internal use only. Must be compatible with the symetry assumption made in
FactoryComparator.equals(Object) : use a commutative operation (addition here) and do not
multiply a term by some factor like the usual 37.
|
|
|
|