Class Range


  • public class Range
    extends java.lang.Object
    Defines a range of integers from start to end, inclusive.
    • Constructor Summary

      Constructors 
      Constructor Description
      Range​(int start, int end)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(int i)  
      int getEnd()  
      int getStart()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Range

        public Range​(int start,
                     int end)
    • Method Detail

      • getStart

        public int getStart()
      • getEnd

        public int getEnd()
      • contains

        public boolean contains​(int i)
      • toString

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