Class HitOrderer

  • Direct Known Subclasses:
    HitSortOrderer

    public abstract class HitOrderer
    extends java.lang.Object
    A class capable of ordering a list of hits
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      HitOrderer()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Comparator<Hit> getComparator()
      Returns the Comparator that this HitOrderer uses internally to sort hits.
      abstract void order​(java.util.List<Hit> hits)
      Orders the given list of hits
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HitOrderer

        public HitOrderer()
    • Method Detail

      • order

        public abstract void order​(java.util.List<Hit> hits)
        Orders the given list of hits
      • getComparator

        public java.util.Comparator<Hit> getComparator()
        Returns the Comparator that this HitOrderer uses internally to sort hits. Returns null if no Comparator is used.

        This default implementation returns null.

        Returns:
        the Comparator used to order hits, or null