public final class

Range

extends Object
implements Iterable<T>
java.lang.Object
   ↳ com.atlassian.confluence.util.collections.Range

Class Overview

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.

Summary

Public Methods
Iterator<Integer> iterator()
static Range range(int start, int end)
Creates a new range with a given start value (inclusive) and end value (exclusive).
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable

Public Methods

public Iterator<Integer> iterator ()

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