All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.fuzzlesoft.Constants Maven / Gradle / Ivy

package ca.fuzzlesoft;

/**
 * @author mitch
 * @since 30/12/15
 */
public class Constants {
    public static boolean isWhitespace(char c) {
        return c == ' '
                || c == '\n'
                || c == '\t';
    }

    public static boolean isLetter(char c) {
        return c >= 'a' && c <= 'z';
    }

    public static boolean isNumberStart(char c) {
        return (c >= '0' && c <= '9') || c == '-';
    }

    public static boolean isNumber(char c) {
        return isNumberStart(c) || c == '+' || c == 'e' || c == 'E' || c == '.';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy