Package com.aerisweather.aeris.util
Class ValidationUtil
- java.lang.Object
-
- com.aerisweather.aeris.util.ValidationUtil
-
public class ValidationUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
REGEX_FOR_INTEGERS
static String
REGEX_FOR_NUMBERS
static String
REGEX_FOR_PLACE
-
Constructor Summary
Constructors Constructor Description ValidationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isInteger(String temp)
static boolean
isNotEmptyString(String text)
static boolean
isNumber(String temp)
static boolean
isValidCoordinate(String coordinates)
static boolean
isValidPlaceString(String place)
static boolean
isValidZipcode(String zip)
-
-
-
Field Detail
-
REGEX_FOR_NUMBERS
public static final String REGEX_FOR_NUMBERS
- See Also:
- Constant Field Values
-
REGEX_FOR_INTEGERS
public static final String REGEX_FOR_INTEGERS
- See Also:
- Constant Field Values
-
REGEX_FOR_PLACE
public static final String REGEX_FOR_PLACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isNotEmptyString
public static boolean isNotEmptyString(String text)
-
isValidPlaceString
public static boolean isValidPlaceString(String place)
-
isValidZipcode
public static boolean isValidZipcode(String zip)
-
isValidCoordinate
public static boolean isValidCoordinate(String coordinates)
-
isNumber
public static boolean isNumber(String temp)
-
isInteger
public static boolean isInteger(String temp)
-
-