Class IntegerRange

    • Constructor Detail

      • IntegerRange

        public IntegerRange()
    • Method Detail

      • between

        public static IntegerRange between​(int min,
                                           int max)
        Returns a range from min to max
      • fixed

        public static IntegerRange fixed​(int length)
        Returns a range from and to the parameter
      • from

        public static IntegerRange from​(int min)
        Returns a range from min with no max
      • to

        public static IntegerRange to​(int max)
        Returns a range from to max with no min
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • inRange

        public boolean inRange​(int number)
        Check if the given number is in range
      • isEmpty

        public boolean isEmpty()
      • isOpen

        public boolean isOpen()
        Return true if any border is null
      • setMax

        public void setMax​(Integer max)
      • setMin

        public void setMin​(Integer min)