public class CommonTools
extends java.lang.Object
构造器和说明 |
---|
CommonTools() |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
checkDoubleValue(java.lang.String str,
java.lang.Double minValue,
java.lang.Double maxValue)
Determine if the string is double type and the value is correct
|
static boolean |
checkFloatValue(java.lang.String str,
java.lang.Float minValue,
java.lang.Float maxValue)
Determine if the string is float type and the value is correct
|
static boolean |
checkIntegerValue(java.lang.String str,
java.lang.Integer minValue,
java.lang.Integer maxValue)
Determine if the string is int type and the value is correct
|
static boolean |
checkLength(java.lang.String str,
int minLength,
int maxLength)
Determine if the string length is correct
|
static boolean |
checkLongValue(java.lang.String str,
java.lang.Long minValue,
java.lang.Long maxValue)
Determine if the string is long type and the value is correct
|
static boolean |
checkShortValue(java.lang.String str,
java.lang.Short minValue,
java.lang.Short maxValue)
Determine if the string is short type and the value is correct
|
static boolean |
isIntegerNumber(java.lang.Object obj)
Determines whether the string is Integer type
|
static boolean |
isNull(java.lang.Object obj)
Determines whether the string is null
|
static boolean |
isNumber(java.lang.String obj)
Determines whether the string is number type
|
static void |
main(java.lang.String[] args) |
static boolean |
matchValueRule(java.lang.String value,
java.lang.String valueRule)
Determines whether the string match the regular expression
|
public static final boolean checkLength(java.lang.String str, int minLength, int maxLength)
str
- minLength
- maxLength
- public static final boolean checkDoubleValue(java.lang.String str, java.lang.Double minValue, java.lang.Double maxValue)
str
- minValue
- maxValue
- public static final boolean checkFloatValue(java.lang.String str, java.lang.Float minValue, java.lang.Float maxValue)
str
- minValue
- maxValue
- public static final boolean checkLongValue(java.lang.String str, java.lang.Long minValue, java.lang.Long maxValue)
str
- minValue
- maxValue
- public static final boolean checkIntegerValue(java.lang.String str, java.lang.Integer minValue, java.lang.Integer maxValue)
str
- minValue
- maxValue
- public static final boolean checkShortValue(java.lang.String str, java.lang.Short minValue, java.lang.Short maxValue)
str
- minValue
- maxValue
- public static final boolean matchValueRule(java.lang.String value, java.lang.String valueRule)
value
- stringvalueRule
- regular expressionpublic static final boolean isNull(java.lang.Object obj)
Object
- public static final boolean isNumber(java.lang.String obj)
Object
- public static final boolean isIntegerNumber(java.lang.Object obj)
Object
- public static void main(java.lang.String[] args)