|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQBigDecimalFactory
This interface provides manipulation and validation functionality for BigDecimal
data type.
Method Summary | |
---|---|
boolean |
isCloseTo(Object a,
Object b,
Object distance)
Checks if two values are within the specified distance. |
boolean |
isGreater(Object a,
Object b)
Checks if the parameter value a is greater than the parameter value b. |
boolean |
isGreaterOrEqual(Object a,
Object b)
Checks if the parameter value a is greater than or equal to the parameter value b. |
boolean |
isInRange(Object value,
Object min,
Object max)
Checks if the value is within a specified range, inclusive. |
boolean |
isLess(Object a,
Object b)
Checks if the parameter value a is less than the parameter value b. |
boolean |
isLessOrEqual(Object a,
Object b)
Checks if the parameter value a is less than or equal to the parameter value b. |
boolean |
isValid(String value)
Interprets a specified value as a BigDecimal (using default platform locale). |
BigDecimal |
parse(Object value)
Creates a BigDecimal instance assuming default platform locale. |
BigDecimal |
parse(String value,
String pattern)
Creates a BigDecimal instance using a specified pattern and locale. |
BigDecimal |
parse(String value,
String pattern,
String locale)
Interprets a specified value as a BigDecimal using a specified pattern and locale. |
Method Detail |
---|
BigDecimal parse(Object value)
value
- A String
or a number value.BigDecimal parse(String value, String pattern)
value
- String value to be parsed.pattern
- A DecimalFormat
pattern.BigDecimal parse(String value, String pattern, String locale)
value
- String value to be parsed.pattern
- A DecimalFormat
pattern.locale
- Localeboolean isInRange(Object value, Object min, Object max)
value
- The value to in question.min
- Start of the range.max
- End of the range.
Exception
- If any of the parameters cannot be converted to a big decimal.boolean isLess(Object a, Object b)
a
- BigDecimal value to compare to.b
- BigDecimal value to compare with.
Exception
- If any of the parameters cannot be converted to a big decimal.boolean isLessOrEqual(Object a, Object b)
a
- BigDecimal value to compare to.b
- BigDecimal value to compare with.
Exception
- If any of the parameters cannot be converted to a big decimal.boolean isGreater(Object a, Object b)
a
- BigDecimal value to compare to.b
- BigDecimal value to compare with.
Exception
- If any of the parameters cannot be converted to big decimal.boolean isGreaterOrEqual(Object a, Object b)
a
- BigDecimal value to compare to.b
- BigDecimal value to compare with.
Exception
- If any of the parameters cannot be converted to a big decimal.boolean isCloseTo(Object a, Object b, Object distance)
a
- The 1st big decimal value.b
- The 2nd big decimal value.distance
- The distance, as specified by the user to compare the difference between
a and b.
Exception
- If any of the parameters cannot be converted to a big decimal.boolean isValid(String value)
value
- The string in specified.
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |