AR System Java API

com.bmc.arsys.api
Class RealFieldLimit

java.lang.Object
  extended by com.bmc.arsys.api.FieldLimit
      extended by com.bmc.arsys.api.RealFieldLimit
All Implemented Interfaces:
Serializable, Cloneable

public class RealFieldLimit
extends FieldLimit
implements Cloneable, Serializable

The RealFieldLimit class defines the value limits for a real number(DataType.REAL) field.

See Also:
Serialized Form

Constructor Summary
RealFieldLimit()
           
RealFieldLimit(double low, double high, int precision)
          Constructs a new RealLimitInfo object
 
Method Summary
 Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(Object obj)
          Use this method for checking equality between the current object and the provided one.
 double getHighRange()
          Returns the upper-range limit.
 double getLowRange()
          Returns the lower-range limit.
 int getPrecision()
          Returns the display precision.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setHighRange(double high)
          Sets the upper-range limit.
 void setLowRange(double low)
          Sets the lower-range limit.
 void setPrecision(int precision)
          Sets the display precision.
 String toString()
          Returns a string description of the object.
 
Methods inherited from class com.bmc.arsys.api.FieldLimit
getDataType
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RealFieldLimit

public RealFieldLimit()

RealFieldLimit

public RealFieldLimit(double low,
                      double high,
                      int precision)
Constructs a new RealLimitInfo object

Parameters:
low - Lower-range limit.
high - Upper-range limit.
precision - Display precision.
Method Detail

getLowRange

public double getLowRange()
Returns the lower-range limit.


getHighRange

public double getHighRange()
Returns the upper-range limit.


getPrecision

public int getPrecision()
Returns the display precision.


setLowRange

public void setLowRange(double low)
Sets the lower-range limit.


setHighRange

public void setHighRange(double high)
Sets the upper-range limit.


setPrecision

public void setPrecision(int precision)
Sets the display precision.


clone

public Object clone()
             throws CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Throws:
CloneNotSupportedException

toString

public String toString()
Returns a string description of the object.

Overrides:
toString in class FieldLimit

hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class FieldLimit
Returns:
returns the hash code for this instance

equals

public boolean equals(Object obj)
Use this method for checking equality between the current object and the provided one. The result is true only if the argument is not null, is of the same type and represents the same content.

Overrides:
equals in class FieldLimit
Parameters:
obj - the object that we are comparing to
Returns:
returns a boolean that tells if the two objects equal

AR System Java API

? Copyright 2006, 2007 BMC Software, Inc.