Class Range

java.lang.Object
com.webcodepro.applecommander.util.Range

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

    • Range

      public Range(int first, int last)
  • Method Details

    • getFirst

      public int getFirst()
    • getLast

      public int getLast()
    • size

      public int size()
    • stream

      public IntStream stream()
    • toString

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

      public static List<Range> from(List<Integer> numbers)