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 TypeMethodDescriptionbyte
Get the corresponding ASCII encoding byte value.static boolean
isColon
(byte inputByte) Tests if the given byte corresponds to a colon ':' in ASCII encoding.static boolean
isComma
(byte inputByte) Tests if the given byte corresponds to a comma ',' in ASCII encoding.static boolean
isCurlyBracketClose
(byte inputByte) Tests if the given byte corresponds to a closing curly bracket '}' in ASCII encoding.static boolean
isCurlyBracketOpen
(byte inputByte) Tests if the given byte corresponds to an opening curly bracket '{}' in ASCII encoding.static boolean
isDoubleQuote
(byte inputByte) Tests if the given byte corresponds to a double quote '"' in ASCII encoding.static boolean
isEscapeCharacter
(byte inputByte) Tests if the given byte corresponds to an escape character (backslash) '\' in ASCII encoding.static boolean
isLowercaseA
(byte inputByte) Tests if the given byte corresponds to a lowercase 'a' in ASCII encoding.static boolean
isLowercaseE
(byte inputByte) Tests if the given byte corresponds to a lowercase 'e' in ASCII encoding.static boolean
isLowercaseF
(byte inputByte) Tests if the given byte corresponds to a lower case f 'f' in ASCII encoding.static boolean
isLowercaseL
(byte inputByte) Tests if the given byte corresponds to a lowercase 'l' in ASCII encoding.static boolean
isLowercaseN
(byte inputByte) Tests if the given byte corresponds to a lower case n 'n' in ASCII encoding.static boolean
isLowercaseR
(byte inputByte) Tests if the given byte corresponds to a lowercase 'r' in ASCII encoding.static boolean
isLowercaseS
(byte inputByte) Tests if the given byte corresponds to a lowercase 's' in ASCII encoding.static boolean
isLowercaseT
(byte inputByte) Tests if the given byte corresponds to a lower case t 't' in ASCII encoding.static boolean
isLowercaseU
(byte inputByte) Tests if the given byte corresponds to a lowercase 'u' in ASCII encoding.static boolean
isSquareBracketClose
(byte inputByte) Tests if the given byte corresponds to a closing square bracket ']' in ASCII encoding.static boolean
isSquareBracketOpen
(byte inputByte) Tests if the given byte corresponds to an opening square bracket '[' in ASCII encoding.static AsciiCharacter
Returns 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
-
MINUS
-
PERIOD
-
PLUS
-
SPACE
-
SQUARE_BRACKET_OPEN
-
SQUARE_BRACKET_CLOSE
-
UPPERCASE_E
-
LOWERCASE_A
-
LOWERCASE_E
-
LOWERCASE_F
-
LOWERCASE_L
-
LOWERCASE_N
-
LOWERCASE_R
-
LOWERCASE_S
-
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
-
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.
-