public class DecimalFieldLimit extends FieldLimit implements Cloneable, Serializable
DecimalFieldLimit
class defines the value limits for a decimal(DataType.DECIMAL
)
fieldConstructor 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.
|
getDataType
public 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 FieldLimit
CloneNotSupportedException
public String toString()
toString
in class FieldLimit
public int hashCode()
hashCode
in class FieldLimit
public boolean equals(Object obj)
equals
in class FieldLimit
obj
- the object that we are comparing to? Copyright 2013 BMC Software, Inc.