# Uses of Class
org.apache.lucene.search.comparators.NumericComparator

Packages that use NumericComparator
Package
Description
org.apache.lucene.search.comparators
Comparators, used to compare hits so as to determine their sort order when collecting the top results with `TopFieldCollector`.

- ## Uses of NumericComparator in org.apache.lucene.search.comparators

  Subclasses of NumericComparator in org.apache.lucene.search.comparators
  Modifier and Type
  Class
  Description
  `class`
  `DoubleComparator`
  Comparator based on `Double.compare(double, double)` for `numHits`.
  `class`
  `FloatComparator`
  Comparator based on `Float.compare(float, float)` for `numHits`.
  `class`
  `IntComparator`
  Comparator based on `Integer.compare(int, int)` for `numHits`.
  `class`
  `LongComparator`
  Comparator based on `Long.compare(long, long)` for `numHits`.