|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.util.Validate
Method Summary | |
static boolean |
isInRange(byte byteArg,
byte lowerBound,
byte higherBound)
Checks whether the parameter passed in is within specified inclusive range. |
static boolean |
isInRange(char charArg,
char lowerBound,
char higherBound)
Checks whether the parameter passed in is within specified inclusive range. |
static boolean |
isInRange(double doubleArg,
double lowerBound,
double higherBound)
Checks whether the parameter passed in is within specified inclusive range. |
static boolean |
isInRange(float floatArg,
float lowerBound,
float higherBound)
Checks whether the parameter passed in is within specified inclusive range. |
static boolean |
isInRange(int intArg,
int lowerBound,
int higherBound)
Checks whether the parameter passed in is within specified inclusive range. |
static boolean |
isInRange(long longArg,
long lowerBound,
long higherBound)
Checks whether the parameter passed in is within specified inclusive range. |
static boolean |
isInRange(short shortArg,
short lowerBound,
short higherBound)
Checks whether the parameter passed in is within specified inclusive range. |
static boolean |
isNotNull(java.lang.Object param)
Checks whether the parameter passed in is null. |
static boolean |
isValid(java.lang.Object param,
java.lang.Class paramType)
Checks whether the parameter passed in is of the required type and is not null. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static boolean isValid(java.lang.Object param, java.lang.Class paramType)
param
- Paramerter to be checked for validity.paramType
- Type the above parameter should be to pass the test.public static boolean isNotNull(java.lang.Object param)
param
- Paramerter to be checked for nullnesspublic static boolean isInRange(int intArg, int lowerBound, int higherBound)
intArg
- Integer to be checked for range validity.lowerBound
- Lower bound of the range.higherBound
- Higher bound of the range.public static boolean isInRange(float floatArg, float lowerBound, float higherBound)
floatArg
- Float to be checked for range validity.lowerBound
- Lower bound of the range.higherBound
- Higher bound of the range.public static boolean isInRange(double doubleArg, double lowerBound, double higherBound)
doubleArg
- Double to be checked for range validity.lowerBound
- Lower bound of the range.higherBound
- Higher bound of the range.public static boolean isInRange(long longArg, long lowerBound, long higherBound)
longArg
- Long to be checked for range validity.lowerBound
- Lower bound of the range.higherBound
- Higher bound of the range.public static boolean isInRange(short shortArg, short lowerBound, short higherBound)
shortArg
- Short to be checked for range validity.lowerBound
- Lower bound of the range.higherBound
- Higher bound of the range.public static boolean isInRange(byte byteArg, byte lowerBound, byte higherBound)
byteArg
- Byte to be checked for range validity.lowerBound
- Lower bound of the range.higherBound
- Higher bound of the range.public static boolean isInRange(char charArg, char lowerBound, char higherBound)
charArg
- Char to be checked for range validity.lowerBound
- Lower bound of the range.higherBound
- Higher bound of the range.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |