Class Range

  extended by com.atlassian.confluence.util.collections.Range
All Implemented Interfaces:

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

Method Detail


public static Range range(int start,
                          int end)
Creates a new range with a given start value (inclusive) and end value (exclusive).

IllegalArgumentException - if start is not less than or equal to end


public Iterator<Integer> iterator()
Specified by:
iterator in interface Iterable<Integer>

Copyright © 2003-2011 Atlassian. All Rights Reserved.