|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.util.collections.Range
public final class Range
Represents an integer range suitable for iterating over. As is typical in Java, it is inclusive for the start value and exclusive for the end value.
Method Summary | |
---|---|
java.util.Iterator<java.lang.Integer> |
iterator()
|
static Range |
range(int start,
int end)
Creates a new range with a given start value (inclusive) and end value (exclusive). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Range range(int start, int end)
java.lang.IllegalArgumentException
- if start
is not less than or equal to end
public java.util.Iterator<java.lang.Integer> iterator()
iterator
in interface java.lang.Iterable<java.lang.Integer>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |