/branches/v1.1-aramon/src/org/tela_botanica/client/util/UtilString.java |
---|
58,4 → 58,9 |
public static boolean isEmpty(ArrayList<String> entree) { |
return !(entree!=null && !entree.toString().equals("[]")); |
} |
public static boolean isNumber(String str, boolean emptyIsTrue) { |
if (emptyIsTrue) return (str.matches("[0-9]*")); |
else return (str.matches("[0-9]+")); |
} |
} |