Package com.github.tadukoo.util
Class CharacterUtil
java.lang.Object
com.github.tadukoo.util.CharacterUtil
Util functions for dealing with Characters.
- Version:
- Alpha v.0.3.1
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isLetter
(char c) static boolean
isLowerCase
(char c) static boolean
isNumber
(char c) static boolean
isUpperCase
(char c) static char
toLowerCase
(char c) static char
toUpperCase
(char c)
-
Constructor Details
-
CharacterUtil
private CharacterUtil()Not allowed to create a CharacterUtil
-
-
Method Details
-
isUpperCase
public static boolean isUpperCase(char c) - Parameters:
c
- The character to be checked- Returns:
- true if the given character is a capital letter, false otherwise
-
isLowerCase
public static boolean isLowerCase(char c) - Parameters:
c
- The character to be checked- Returns:
- true if the given character is a lowercase letter, false otherwise
-
isLetter
public static boolean isLetter(char c) - Parameters:
c
- The character to be checked- Returns:
- true if the given character is a letter, false otherwise
-
isNumber
public static boolean isNumber(char c) - Parameters:
c
- The character to be checked- Returns:
- true if the given character is a number, false otherwise
-
toUpperCase
public static char toUpperCase(char c) - Parameters:
c
- The character to be capitalized- Returns:
- The capital version of the given character, or the character itself if it's not a letter
-
toLowerCase
public static char toLowerCase(char c) - Parameters:
c
- The character to change to lowercase- Returns:
- The lowercase version of the given character, or the character itself if it's not a letter
-