Class CharacterUtil

java.lang.Object
com.github.tadukoo.util.CharacterUtil

public final class CharacterUtil extends Object
Util functions for dealing with Characters.
Version:
Alpha v.0.3.1
Author:
Logan Ferree (Tadukoo)
  • 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