Class Infinite
- java.lang.Object
-
- com.yahoo.search.grouping.request.Infinite
-
- All Implemented Interfaces:
java.lang.Comparable
public class Infinite extends java.lang.Object implements java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object rhs)
An infinity value is always less than or greater than.boolean
equals(java.lang.Object other)
int
hashCode()
java.lang.String
toString()
Override the toString method in order to be re-parseable.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Override the toString method in order to be re-parseable.- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object rhs)
An infinity value is always less than or greater than.- Specified by:
compareTo
in interfacejava.lang.Comparable
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-