com.sun.jimi.util
Class IntegerRange

java.lang.Object
  |
  +--com.sun.jimi.util.IntegerRange

public class IntegerRange
extends java.lang.Object
implements Range

Provides an easy means of specifying a range of integers.


Constructor Summary
IntegerRange(java.lang.Integer lowest, java.lang.Integer greatest)
           
IntegerRange(int lowest, int greatest)
           
 
Method Summary
 java.lang.Object getGreatestValue()
           
 java.lang.Object getLeastValue()
           
 boolean isContinuous()
           
 boolean isInRange(int testCase)
          Convenience method.
 boolean isInRange(java.lang.Object testCase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerRange

public IntegerRange(int lowest,
                    int greatest)

IntegerRange

public IntegerRange(java.lang.Integer lowest,
                    java.lang.Integer greatest)
Method Detail

getLeastValue

public java.lang.Object getLeastValue()
Specified by:
getLeastValue in interface Range

getGreatestValue

public java.lang.Object getGreatestValue()
Specified by:
getGreatestValue in interface Range

isContinuous

public boolean isContinuous()
Specified by:
isContinuous in interface Range

isInRange

public boolean isInRange(java.lang.Object testCase)
Specified by:
isInRange in interface Range

isInRange

public boolean isInRange(int testCase)
Convenience method.