Class 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.
      • Methods inherited from class java.lang.Object

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

      • Infinite

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

      • toString

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

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object