|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQIntegerFactory
This interface provides manipulation and validation functionality for Integer
data type.
Method Summary | |
---|---|
boolean |
isEqual(Object a,
Object b)
Checks if two values are equal. |
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 Integer (using default platform locale). |
Integer |
parse(Object value)
Creates a Integer instance assuming default platform locale. |
Integer |
parse(String value,
String pattern)
Creates a Integer instance using a specified pattern and locale. |
Integer |
parse(String value,
String pattern,
String locale)
Interprets a specified value as a Integer using a specified pattern and locale. |
Method Detail |
---|
Integer parse(Object value)
value
- The value to be converted.
Exception
- If the parameter is invalid.Integer parse(String value, String pattern)
value
- The value to be converted.pattern
- The pattern used to validate the value against or null to
use the default for the Locale. Please see DecimalFormatSymbols
Exception
- If the parameter is invalid.Integer parse(String value, String pattern, String locale)
value
- The value to be converted.pattern
- The pattern used to validate the value against or null to
use the default for the Locale. Please see DecimalFormatSymbols
locale
- The locale to use for the format, system default if null. Please see Locale
.
Exception
- If the parameter is invalid.boolean isInRange(Object value, Object min, Object max)
value
- The value in question.min
- Start of the range.max
- End of the range.
Exception
- If any of the parameters cannot be converted to an integer.boolean isLess(Object a, Object b)
a
- The integer value to compare to.b
- The integer value to compare with.
Exception
- If any of the parameters cannot be converted to an integer.boolean isLessOrEqual(Object a, Object b)
a
- The integer value to compare to.b
- The integer value to compare with.
Exception
- If any of the parameters cannot be converted to an integer.boolean isGreater(Object a, Object b)
a
- The integer value to compare to.b
- The integer value to compare with.
Exception
- If any of the parameters cannot be converted to an integer.boolean isGreaterOrEqual(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 an integer.boolean isEqual(Object a, Object b)
a
- The first integer value.b
- The second integer value.
Exception
- If any of the parameters cannot be converted to an Integer.boolean isValid(String value)
value
-
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |