Enum Class AsciiCharacter
- All Implemented Interfaces:
Serializable,Comparable<AsciiCharacter>,Constable
ASCII encoding characters and utility methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbyteGet the corresponding ASCII encoding byte value.static booleanisColon(byte inputByte) Tests if the given byte corresponds to a colon ':' in ASCII encoding.static booleanisComma(byte inputByte) Tests if the given byte corresponds to a comma ',' in ASCII encoding.static booleanisCurlyBracketClose(byte inputByte) Tests if the given byte corresponds to a closing curly bracket '}' in ASCII encoding.static booleanisCurlyBracketOpen(byte inputByte) Tests if the given byte corresponds to an opening curly bracket '{}' in ASCII encoding.static booleanisDoubleQuote(byte inputByte) Tests if the given byte corresponds to a double quote '"' in ASCII encoding.static booleanisEscapeCharacter(byte inputByte) Tests if the given byte corresponds to an escape character (backslash) '\' in ASCII encoding.static booleanisLowercaseF(byte inputByte) Tests if the given byte corresponds to a lower case f 'f' in ASCII encoding.static booleanisLowercaseN(byte inputByte) Tests if the given byte corresponds to a lower case n 'n' in ASCII encoding.static booleanisLowercaseT(byte inputByte) Tests if the given byte corresponds to a lower case t 't' in ASCII encoding.static booleanisLowercaseU(byte inputByte) Tests if the given byte corresponds to a lowercase 'u' in ASCII encoding.static booleanisSquareBracketClose(byte inputByte) Tests if the given byte corresponds to a closing square bracket ']' in ASCII encoding.static booleanisSquareBracketOpen(byte inputByte) Tests if the given byte corresponds to an opening square bracket '[' in ASCII encoding.static bytetoAsciiByteValue(int digit) static AsciiCharacterReturns the enum constant of this class with the specified name.static AsciiCharacter[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASTERISK
-
BACK_SLASH
-
CARRIAGE_RETURN
-
COLON
-
COMMA
-
CURLY_BRACKET_CLOSE
-
CURLY_BRACKET_OPEN
-
DOUBLE_QUOTE
-
HORIZONTAL_TAB
-
LINE_FEED
-
LOWERCASE_E
-
MINUS
-
PERIOD
-
PLUS
-
SPACE
-
SQUARE_BRACKET_OPEN
-
SQUARE_BRACKET_CLOSE
-
UPPERCASE_E
-
LOWERCASE_F
-
LOWERCASE_N
-
LOWERCASE_T
-
LOWERCASE_U
-
ZERO
-
ONE
-
TWO
-
THREE
-
FOUR
-
FIVE
-
SIX
-
SEVEN
-
EIGHT
-
NINE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toAsciiByteValue
public static byte toAsciiByteValue(int digit) -
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.
-
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.
-