edu.sdsc.mbt.util
Class IntRange

java.lang.Object
  extended byedu.sdsc.mbt.util.IntRange
All Implemented Interfaces:
Range, java.io.Serializable

public class IntRange
extends java.lang.Object
implements Range, java.io.Serializable

This class implements a container for a range of two int values.

Author:
Oleksandr V. Buzko
See Also:
Serialized Form

Constructor Summary
IntRange()
          Constructor creating an empty Range object
IntRange(int a, int b)
          Constructor initialized with two values
 
Method Summary
 int getEnd()
          Returns the end value.
 int getStart()
          Returns the start value.
 java.lang.Object getUnit()
          Returns a unit that indicates what type of range this is (an Integer)
 void setEnd(int a)
          Sets end int value.
 void setStart(int a)
          Sets start int value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntRange

public IntRange(int a,
                int b)
Constructor initialized with two values

Parameters:
a - start int value
b - end int value

IntRange

public IntRange()
Constructor creating an empty Range object

Method Detail

setStart

public void setStart(int a)
Sets start int value.


setEnd

public void setEnd(int a)
Sets end int value.


getStart

public int getStart()
Returns the start value.


getEnd

public int getEnd()
Returns the end value.


getUnit

public java.lang.Object getUnit()
Returns a unit that indicates what type of range this is (an Integer)

Specified by:
getUnit in interface Range