Interface DistanceTerm

All Superinterfaces:
QueryTerm

public interface DistanceTerm extends QueryTerm

A term for a Distance query.

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the Distance in this term.

    Methods inherited from interface QueryTerm

    isPositive, isWildcard
    Modifier and Type
    Method
    Description
    boolean
    Tests if this is a positive or negative term.
    boolean
    Tests if this term is a wildcard.
  • Method Details

    • getDistance

      Distance getDistance()
      Gets the Distance in this term.
      Returns:
      the distance
      Throws:
      IllegalStateException - isWildcard() is true
      Compliance:
      mandatory - This method must be implemented.