net.refractions.udig.ui
Class AttributeComparator

java.lang.Object
  extended by net.refractions.udig.ui.AttributeComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<SimpleFeature>

public class AttributeComparator
extends java.lang.Object
implements java.util.Comparator<SimpleFeature>, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
AttributeComparator(int dir, java.lang.String xpath)
           
 
Method Summary
 int compare(SimpleFeature f0, SimpleFeature f1)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeComparator

public AttributeComparator(int dir,
                           java.lang.String xpath)
Method Detail

compare

public int compare(SimpleFeature f0,
                   SimpleFeature f1)
Specified by:
compare in interface java.util.Comparator<SimpleFeature>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator<SimpleFeature>
Overrides:
equals in class java.lang.Object