com.bowstreet.webapp.util
Class Range

java.lang.Object
  extended by com.bowstreet.webapp.util.Range

public class Range
extends java.lang.Object

Class to hold numeric range data.


Constructor Summary
Range(double min, double max)
          Range constructor using the specified min, and max values.
Range(float min, float max)
          Range constructor using the specified min, and max values.
Range(int min, int max)
          Range constructor using the specified min, and max values.
Range(long min, long max)
          Range constructor using the specified min, and max values.
Range(java.lang.Number min, java.lang.Number max)
          Range constructor using the specified min, and max values.
 
Method Summary
 java.lang.Number getMax()
          Gets The maximum range value.
 java.lang.Number getMin()
          Gets The minimum range value.
 java.lang.Object getProperty(java.lang.Object key)
          Gets a generic property on this object.
 void putProperty(java.lang.Object key, java.lang.Object value)
          Sets a generic property on this object.
 void setMax(java.lang.Number max)
          Sets The maximum range value.
 void setMin(java.lang.Number min)
          Sets The minimum range value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Range

public Range(double min,
             double max)
Range constructor using the specified min, and max values.

Parameters:
min - The minimum range value.
max - The maximum range value.

Range

public Range(float min,
             float max)
Range constructor using the specified min, and max values.

Parameters:
min - The minimum range value.
max - The maximum range value.

Range

public Range(int min,
             int max)
Range constructor using the specified min, and max values.

Parameters:
min - The minimum range value.
max - The maximum range value.

Range

public Range(long min,
             long max)
Range constructor using the specified min, and max values.

Parameters:
min - The minimum range value.
max - The maximum range value.

Range

public Range(java.lang.Number min,
             java.lang.Number max)
Range constructor using the specified min, and max values.

Parameters:
min - The minimum range value.
max - The maximum range value.
Method Detail

getMax

public java.lang.Number getMax()
Gets The maximum range value.

Returns:
Returns the maximum range value.

getMin

public java.lang.Number getMin()
Gets The minimum range value.

Returns:
Returns the minimum range value.

getProperty

public java.lang.Object getProperty(java.lang.Object key)
Gets a generic property on this object.

Parameters:
key - The property key.
Returns:
The property value.

putProperty

public void putProperty(java.lang.Object key,
                        java.lang.Object value)
Sets a generic property on this object.

Parameters:
key - The property key.
value - The property value.

setMax

public void setMax(java.lang.Number max)
Sets The maximum range value.

Parameters:
max - The maximum range value to set.

setMin

public void setMin(java.lang.Number min)
Sets The minimum range value.

Parameters:
min - The minimum range value to set..


Copyright © 2009 IBM. All Rights Reserved.