Class Range
- java.lang.Object
-
- com.webcodepro.applecommander.util.Range
-
public class Range extends java.lang.ObjectRepresents 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)intgetFirst()intgetLast()intsize()java.lang.StringtoString()
-
-
-
Method Detail
-
getFirst
public int getFirst()
-
getLast
public int getLast()
-
size
public int size()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
from
public static java.util.List<Range> from(java.util.List<java.lang.Integer> numbers)
-
-