Class Range

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

public final class Range extends Object
Understands a range (from, to.)

Usage:

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

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Understands the starting value of a range.
    static class 
    Understands the ending value of a range.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final Range.From
    from(int value)
    Creates a new Range.From, representing the starting value of a range.
    static final 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
  • Constructor Details

    • Range

      private Range()
  • Method Details

    • 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.