Class LongRange


  • public class LongRange
    extends java.lang.Object
    Represents a contiguous range of long values, with an inclusive minimum and exclusive maximum
    • Field Summary

      Fields 
      Modifier and Type Field Description
      long max
      The exclusive maximum value of this range
      long min
      The inclusive minimum value of this range
    • Constructor Summary

      Constructors 
      Constructor Description
      LongRange​(long min, long max)
      Creates a new double range, running from min inclusive to max exclusive
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • min

        public long min
        The inclusive minimum value of this range
      • max

        public long max
        The exclusive maximum value of this range
    • Constructor Detail

      • LongRange

        public LongRange​(long min,
                         long max)
        Creates a new double range, running from min inclusive to max exclusive
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

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

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