Enum Class AsciiCharacter

java.lang.Object
java.lang.Enum<AsciiCharacter>
dev.blaauwendraad.masker.json.util.AsciiCharacter
All Implemented Interfaces:
Serializable, Comparable<AsciiCharacter>, Constable

public enum AsciiCharacter extends Enum<AsciiCharacter>
ASCII encoding characters and utility methods.
  • Enum Constant Details

  • Method Details

    • values

      public static AsciiCharacter[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AsciiCharacter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isDoubleQuote

      public static boolean isDoubleQuote(byte inputByte)
      Tests if the given byte corresponds to a double quote '"' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a double quote in ASCII encoding and false otherwise.
    • isEscapeCharacter

      public static boolean isEscapeCharacter(byte inputByte)
      Tests if the given byte corresponds to an escape character (backslash) '\' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to an escape character (backslash) in ASCII encoding and false otherwise.
    • isLowercaseA

      public static boolean isLowercaseA(byte inputByte)
      Tests if the given byte corresponds to a lowercase 'a' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a lowercase 'a' in ASCII encoding and false otherwise.
    • isLowercaseE

      public static boolean isLowercaseE(byte inputByte)
      Tests if the given byte corresponds to a lowercase 'e' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a lowercase 'e' in ASCII encoding and false otherwise.
    • isLowercaseL

      public static boolean isLowercaseL(byte inputByte)
      Tests if the given byte corresponds to a lowercase 'l' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a lowercase 'l' in ASCII encoding and false otherwise.
    • isLowercaseR

      public static boolean isLowercaseR(byte inputByte)
      Tests if the given byte corresponds to a lowercase 'r' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a lowercase 'r' in ASCII encoding and false otherwise.
    • isLowercaseS

      public static boolean isLowercaseS(byte inputByte)
      Tests if the given byte corresponds to a lowercase 's' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a lowercase 's' in ASCII encoding and false otherwise.
    • isLowercaseU

      public static boolean isLowercaseU(byte inputByte)
      Tests if the given byte corresponds to a lowercase 'u' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a lowercase 'u' in ASCII encoding and false otherwise.
    • isColon

      public static boolean isColon(byte inputByte)
      Tests if the given byte corresponds to a colon ':' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a colon ':' in ASCII encoding and false otherwise.
    • isSquareBracketOpen

      public static boolean isSquareBracketOpen(byte inputByte)
      Tests if the given byte corresponds to an opening square bracket '[' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to an opening square bracket '[' in ASCII encoding and false otherwise.
    • isSquareBracketClose

      public static boolean isSquareBracketClose(byte inputByte)
      Tests if the given byte corresponds to a closing square bracket ']' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a closing square bracket ']' in ASCII encoding and false otherwise.
    • isCurlyBracketOpen

      public static boolean isCurlyBracketOpen(byte inputByte)
      Tests if the given byte corresponds to an opening curly bracket '{}' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to an opening curly bracket '{}' in ASCII encoding and false otherwise.i
    • isCurlyBracketClose

      public static boolean isCurlyBracketClose(byte inputByte)
      Tests if the given byte corresponds to a closing curly bracket '}' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a closing curly bracket '}' in ASCII encoding and false otherwise.
    • isComma

      public static boolean isComma(byte inputByte)
      Tests if the given byte corresponds to a comma ',' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a comma ',' in ASCII encoding and false otherwise.
    • isLowercaseN

      public static boolean isLowercaseN(byte inputByte)
      Tests if the given byte corresponds to a lower case n 'n' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a lower case n 'n' in ASCII encoding and false otherwise.
    • isLowercaseT

      public static boolean isLowercaseT(byte inputByte)
      Tests if the given byte corresponds to a lower case t 't' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a lower case t 't' in ASCII encoding and false otherwise.
    • isLowercaseF

      public static boolean isLowercaseF(byte inputByte)
      Tests if the given byte corresponds to a lower case f 'f' in ASCII encoding.
      Parameters:
      inputByte - the input byte
      Returns:
      true if the byte corresponds to a lower case f 'f' in ASCII encoding and false otherwise.
    • getAsciiByteValue

      public byte getAsciiByteValue()
      Get the corresponding ASCII encoding byte value.
      Returns:
      the ASCII encoding byte value.