public class NumberChecker
extends java.lang.Object
| Constructor and Description |
|---|
NumberChecker() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isByte(java.lang.String s)
Check if a string is a valid byte.
|
static boolean |
isDouble(java.lang.String s)
Check if a string is a valid double.
|
static boolean |
isFloat(java.lang.String s)
Check if a string is a valid float.
|
static boolean |
isInteger(java.lang.String s)
Check if a string is a valid integer.
|
static boolean |
isLong(java.lang.String s)
Check if a string is a valid long.
|
static boolean |
isShort(java.lang.String s)
Check if a string is a valid short.
|
public static boolean isByte(java.lang.String s)
s - The string to checkpublic static boolean isShort(java.lang.String s)
s - The string to checkpublic static boolean isInteger(java.lang.String s)
s - The string to checkpublic static boolean isLong(java.lang.String s)
s - The string to checkpublic static boolean isFloat(java.lang.String s)
s - The string to checkpublic static boolean isDouble(java.lang.String s)
s - The string to check