|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQFloatFactory
This interface provides manipulation and validation functionality for Float
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 value is greater than a specified threshold. |
boolean |
isGreaterOrEqual(Object a,
Object b)
Checks if the value is less than or equals to a specified threshold. |
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 value is less than a specified threshold. |
boolean |
isLessOrEqual(Object a,
Object b)
Checks if the value is less than or equals to a specified threshold. |
boolean |
isValid(String value)
Interprets a specified value as a Float (using default platform locale). |
Float |
parse(Object value)
Creates a Float instance assuming default platform locale. |
Float |
parse(String value,
String pattern)
Creates a Float instance using a specified pattern and locale. |
Float |
parse(String value,
String pattern,
String locale)
Interprets a specified value as a Float using a specified pattern and locale. |
Method Detail |
---|
Float parse(Object value)
value
- Float parse(String value, String pattern)
value
- pattern
- Float parse(String value, String pattern, String locale)
value
- pattern
- locale
- boolean isInRange(Object value, Object min, Object max)
value
- The value in question.min
- Start of the range.max
- End of the range.
* @throws Exception
If any of the parameters cannot be converted to a float.
boolean isLess(Object a, Object b)
a
- The double value to compare to.b
- The double value to compare with.
Exception
- If any of the parameters cannot be converted to float.boolean isLessOrEqual(Object a, Object b)
a
- The double value to compare to.b
- The double value to compare with.
Exception
- If any of the parameters cannot be converted to float.boolean isGreater(Object a, Object b)
a
- The float value to compare to.b
- The float value to compare with.
Exception
- If any of the parameters cannot be converted to float.boolean isGreaterOrEqual(Object a, Object b)
a
- The float value to compare to.b
- The float value to compare with.
Exception
- If any of the parameters cannot be converted to float.boolean isCloseTo(Object a, Object b, Object distance)
a
- The 1st float value.b
- The 2nd float 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 float.boolean isValid(String value)
value
-
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |