Class Infinite

java.lang.Object
com.yahoo.search.grouping.request.Infinite
All Implemented Interfaces:
Comparable

public class Infinite extends Object implements Comparable
This class represents an Infinite value that may be used as a bucket size specifier. This is immutable.
Author:
Ulf Lilleengen
  • Constructor Summary

    Constructors
    Constructor
    Description
    Infinite(boolean negative)
    Create an Infinite object with positive or negative sign.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    An infinity value is always less than or greater than.
    boolean
    equals(Object other)
     
    int
     
    Override the toString method in order to be re-parseable.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Infinite

      public Infinite(boolean negative)
      Create an Infinite object with positive or negative sign.
      Parameters:
      negative - the signedness.
  • Method Details

    • toString

      public String toString()
      Override the toString method in order to be re-parseable.
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Object rhs)
      An infinity value is always less than or greater than.
      Specified by:
      compareTo in interface Comparable
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object