org.geotools.data.shapefile.indexed
Class DataComparator

java.lang.Object
  extended byorg.geotools.data.shapefile.indexed.DataComparator
All Implemented Interfaces:
java.util.Comparator

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

A Comparator for sortin search results in ascending record number. So we can read dbf & shape file forward only

Author:
Tommaso Nolli

Constructor Summary
DataComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
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
 

Constructor Detail

DataComparator

public DataComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © GeoTools. All Rights Reserved.