Class Range
java.lang.Object
range.exercise.Range
- Author:
- __STUDENT_NAME__, Finn Voichick, Dennis Cosgrove
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
Range
public Range(int min, int maxExclusive) - Parameters:
min- the inclusive lower boundmaxExclusive- the exclusive upper bound
-
-
Method Details
-
min
public int min()Gets the inclusive lower bound of the slice.- Returns:
- inclusive lower bound of the slice
-
maxExclusive
public int maxExclusive()Gets the exclusive upper bound of the slice.- Returns:
- exclusive upper bound of the slice
-
iterator
-
hashCode
-
equals
-
toString
-