com.yahoo.shopping
Class XSearcher.NraHitOrderer

java.lang.Object
  extended by com.yahoo.shopping.XSearcher.NraHitOrderer
All Implemented Interfaces:
java.util.Comparator<NraHit>
Enclosing class:
XSearcher

private static class XSearcher.NraHitOrderer
extends java.lang.Object
implements java.util.Comparator<NraHit>

Sorts NraHit objects, firstby lower bound, then by upper bound.

Author:
Anne Siri Korsen & Trond Řivind Eriksen.

Constructor Summary
private XSearcher.NraHitOrderer()
           
 
Method Summary
 int compare(NraHit nraHit1, NraHit nraHit2)
          Called by Collections to carry out the sort
 
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

XSearcher.NraHitOrderer

private XSearcher.NraHitOrderer()
Method Detail

compare

public int compare(NraHit nraHit1,
                   NraHit nraHit2)
Called by Collections to carry out the sort

Specified by:
compare in interface java.util.Comparator<NraHit>