org.geotools.graph.build
Class FeatureComparator

java.lang.Object
  extended byorg.geotools.graph.build.FeatureComparator
All Implemented Interfaces:
java.util.Comparator
Direct Known Subclasses:
LineStringComparator, PolygonComparator

public abstract class FeatureComparator
extends java.lang.Object
implements java.util.Comparator

A FeatureComparator compares two features to one another.


Field Summary
static int NO_RELATIONSHIP
          constant NO_RELATIONSHIP
 
Constructor Summary
FeatureComparator()
           
 
Method Summary
abstract  int compare(org.geotools.feature.Feature f1, org.geotools.feature.Feature f2)
          Compares one Feature to another.
 int compare(java.lang.Object o1, java.lang.Object o2)
          Calls compare(Feature,Feature).
 
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

NO_RELATIONSHIP

public static final int NO_RELATIONSHIP
constant NO_RELATIONSHIP

See Also:
Constant Field Values
Constructor Detail

FeatureComparator

public FeatureComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Calls compare(Feature,Feature).

Specified by:
compare in interface java.util.Comparator
See Also:
Comparator.compare(Object, Object)

compare

public abstract int compare(org.geotools.feature.Feature f1,
                            org.geotools.feature.Feature f2)
Compares one Feature to another.

Parameters:
f1 -
f2 -
Returns:
An integer describing the relationship betweent the two features.