org.apache.lucene.search.spans
Class SpanPosComparator

Object
  extended by SpanPosComparator
All Implemented Interfaces:
Comparator

public class SpanPosComparator
extends Object
implements Comparator

Comparator on Spans that orders them by ascending start position, then end position.


Field Summary
static SpanPosComparator theInstance
           
 
Constructor Summary
private SpanPosComparator()
          Don't create an instance; the EmptySpans.theInstance.
 
Method Summary
 int compare(Object o1, Object o2)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Comparator
equals
 

Field Detail

theInstance

public static SpanPosComparator theInstance
Constructor Detail

SpanPosComparator

private SpanPosComparator()
Don't create an instance; the EmptySpans.theInstance.

Method Detail

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator