org.fest.swing.util
Class Range

java.lang.Object
  extended by org.fest.swing.util.Range

public final class Range
extends Object

Understands a range (from, to.)

Usage:

 Range range = from(0).to(8);
 

Author:
Alex Ruiz

Nested Class Summary
static class Range.From
          Understands the starting value of a range.
static class Range.To
          Understands the ending value of a range.
 
Method Summary
static Range.From from(int value)
          Creates a new Range.From, representing the starting value of a range.
static Range.To to(int value)
          Creates a new Range.To, representing the ending value of a range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

from

public static final Range.From from(int value)
Creates a new Range.From, representing the starting value of a range.

Parameters:
value - the starting value of the range.
Returns:
the created From.

to

public static final Range.To to(int value)
Creates a new Range.To, representing the ending value of a range.

Parameters:
value - the ending value of the range.
Returns:
the created To.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.