Class RangeIterable
java.lang.Object
de.renebergelt.quiterables.iterators.RangeIterable
An Iterable implementation which returns a range of integer numbers
- Author:
- René Bergelt
-
Constructor Summary
ConstructorsConstructorDescriptionRangeIterable(int start, int end)Creates an instance of the RangeIterable which contains the numbers starting at start until end (inclusive, i.e. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RangeIterable
public RangeIterable(int start, int end)Creates an instance of the RangeIterable which contains the numbers starting at start until end (inclusive, i.e. [start, end])- Parameters:
start- first numberend- last number
-
-
Method Details