Class Range


  • public class Range
    extends java.lang.Object
    Represents a range of numbers with helper methods to put them together.
    • Constructor Summary

      Constructors 
      Constructor Description
      Range​(int first, int last)  
    • Constructor Detail

      • Range

        public Range​(int first,
                     int last)
    • Method Detail

      • getFirst

        public int getFirst()
      • getLast

        public int getLast()
      • size

        public int size()
      • toString

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

        public static java.util.List<Range> from​(java.util.List<java.lang.Integer> numbers)