net.refractions.udig.ui
Class FIDComparator
java.lang.Object
  
net.refractions.udig.ui.FIDComparator
- All Implemented Interfaces: 
 - java.io.Serializable, java.util.Comparator<SimpleFeature>
 
public class FIDComparator
- extends java.lang.Object
- implements java.util.Comparator<SimpleFeature>, java.io.Serializable
  
Sorts features according to their FIDS.
- Since:
 
  - 1.1.0
 
- Author:
 
  - Jesse
 
- See Also:
 - Serialized Form
 
 
| 
Method Summary | 
 int | 
compare(SimpleFeature o1,
        SimpleFeature o2)
 
            | 
 boolean | 
equals(java.lang.Object obj)
 
            | 
 int | 
hashCode()
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
 
FIDComparator
public FIDComparator(int dir)
- Parameters:
 dir - SWT.UP or SWT.DOWN.  If SWT.UP then the largest fids are at the top (sorted top to bottom).
compare
public int compare(SimpleFeature o1,
                   SimpleFeature o2)
- 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