com.atlassian.confluence.util.collections
Class Range
java.lang.Object
com.atlassian.confluence.util.collections.Range
- All Implemented Interfaces:
- Iterable<Integer>
public final class Range
- extends Object
- implements Iterable<Integer>
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 |
Iterator<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 |
range
public static Range range(int start,
int end)
- Creates a new range with a given start value (inclusive) and end value (exclusive).
- Throws:
IllegalArgumentException
- if start
is not less than or equal to end
iterator
public Iterator<Integer> iterator()
- Specified by:
iterator
in interface Iterable<Integer>
Copyright © 2003-2013 Atlassian. All Rights Reserved.