public class DecimalFieldLimit extends FieldLimit implements Cloneable, Serializable
DecimalFieldLimit class defines the value limits for a decimal(DataType.DECIMAL)
field| Constructor and Description |
|---|
DecimalFieldLimit() |
DecimalFieldLimit(BigDecimal low,
BigDecimal high,
int precision) |
DecimalFieldLimit(String low,
String high,
int precision)
Constructs a new
DecimalLimitInfo object. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
BigDecimal |
getHighRange()
Retrieves the upper-range limit.
|
BigDecimal |
getLowRange()
Retrieves the lower-range limit.
|
int |
getPrecision()
Retrieves the display precision.
|
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setHighRange(BigDecimal high)
Sets the upper-range limit.
|
void |
setLowRange(BigDecimal low)
Sets the lower-range limit.
|
void |
setPrecision(int precision)
Sets the display precision.
|
String |
toString()
Returns a string description of the object.
|
getDataTypepublic DecimalFieldLimit(String low, String high, int precision)
DecimalLimitInfo object.low - Lower-range limit.high - Upper-range limit.precision - Display precision.public DecimalFieldLimit(BigDecimal low, BigDecimal high, int precision)
public DecimalFieldLimit()
public void setLowRange(BigDecimal low)
public void setHighRange(BigDecimal high)
public void setPrecision(int precision)
public BigDecimal getLowRange()
public BigDecimal getHighRange()
public int getPrecision()
public Object clone() throws CloneNotSupportedException
clone in class FieldLimitCloneNotSupportedExceptionpublic String toString()
toString in class FieldLimitpublic int hashCode()
hashCode in class FieldLimitpublic boolean equals(Object obj)
equals in class FieldLimitobj - the object that we are comparing to? Copyright 2013 BMC Software, Inc.