Class Range
- java.lang.Object
-
- com.webcodepro.applecommander.util.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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<Range>
from(java.util.List<java.lang.Integer> numbers)
int
getFirst()
int
getLast()
int
size()
java.lang.String
toString()
-
-
-
Method Detail
-
getFirst
public int getFirst()
-
getLast
public int getLast()
-
size
public int size()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
from
public static java.util.List<Range> from(java.util.List<java.lang.Integer> numbers)
-
-