public class CurrencyFieldLimit extends FieldLimit implements Cloneable, Serializable
CurrencyFieldLimit class defines the value limits for a
Currency (DataType.CURRENCY) field| Constructor and Description |
|---|
CurrencyFieldLimit()
Constructs an empty
CurrencyLimitInfo object. |
CurrencyFieldLimit(BigDecimal lowLimit,
BigDecimal highLimit,
int precision)
Constructs a
CurrencyLimitInfo object using the limit and precision info |
CurrencyFieldLimit(BigDecimal lowLimit,
BigDecimal highLimit,
int precision,
List<CurrencyDetail> functional,
List<CurrencyDetail> allowable) |
CurrencyFieldLimit(String lowLimit,
String highLimit,
int precision)
Constructs a
CurrencyLimitInfo object using the limit and precision info |
CurrencyFieldLimit(String lowLimit,
String highLimit,
int precision,
List<CurrencyDetail> functional,
List<CurrencyDetail> allowable) |
| 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.
|
List<CurrencyDetail> |
getAllowable()
Retrieves currency types that the server will allow user to enter
|
List<CurrencyDetail> |
getFunctional()
Retrieves currency types that are always stored in the database
|
BigDecimal |
getHighRange()
Retrieves the upper-range limit.
|
BigDecimal |
getLowRange()
Retrieves the lower-range limit.
|
int |
getPrecision()
Retrieves the display precision (the number of places to the right of the decimal point ).
|
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setHighRange(BigDecimal highLimit)
Sets the upper-range limit.
|
void |
setLowRange(BigDecimal lowLimit)
Sets the lower-range limit.
|
void |
setPrecision(int precision)
Sets the display precision.
|
String |
toString()
Returns a string description of the object.
|
getDataTypepublic CurrencyFieldLimit()
CurrencyLimitInfo object.public CurrencyFieldLimit(String lowLimit, String highLimit, int precision)
CurrencyLimitInfo object using the limit and precision infolowLimit - Lower-range limit.highLimit - Upper-range limit.precision - Display precision.public CurrencyFieldLimit(BigDecimal lowLimit, BigDecimal highLimit, int precision)
CurrencyLimitInfo object using the limit and precision infolowLimit - Lower-range limit.highLimit - Upper-range limit.precision - Display precision.public CurrencyFieldLimit(String lowLimit, String highLimit, int precision, List<CurrencyDetail> functional, List<CurrencyDetail> allowable)
public CurrencyFieldLimit(BigDecimal lowLimit, BigDecimal highLimit, int precision, List<CurrencyDetail> functional, List<CurrencyDetail> allowable)
public void setLowRange(BigDecimal lowLimit)
public void setHighRange(BigDecimal highLimit)
public void setPrecision(int precision)
public BigDecimal getLowRange()
public BigDecimal getHighRange()
public int getPrecision()
public List<CurrencyDetail> getAllowable()
public List<CurrencyDetail> getFunctional()
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.