charCharacters.Characters.Characters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of progsbase-to-easyjson Show documentation
Show all versions of progsbase-to-easyjson Show documentation
Adapter Progsbase JSON library to easyjson
package charCharacters.Characters;
public class Characters {
public static char charToLowerCase(char character) {
char toReturn;
toReturn = character;
if (character == 'A') {
toReturn = 'a';
} else if (character == 'B') {
toReturn = 'b';
} else if (character == 'C') {
toReturn = 'c';
} else if (character == 'D') {
toReturn = 'd';
} else if (character == 'E') {
toReturn = 'e';
} else if (character == 'F') {
toReturn = 'f';
} else if (character == 'G') {
toReturn = 'g';
} else if (character == 'H') {
toReturn = 'h';
} else if (character == 'I') {
toReturn = 'i';
} else if (character == 'J') {
toReturn = 'j';
} else if (character == 'K') {
toReturn = 'k';
} else if (character == 'L') {
toReturn = 'l';
} else if (character == 'M') {
toReturn = 'm';
} else if (character == 'N') {
toReturn = 'n';
} else if (character == 'O') {
toReturn = 'o';
} else if (character == 'P') {
toReturn = 'p';
} else if (character == 'Q') {
toReturn = 'q';
} else if (character == 'R') {
toReturn = 'r';
} else if (character == 'S') {
toReturn = 's';
} else if (character == 'T') {
toReturn = 't';
} else if (character == 'U') {
toReturn = 'u';
} else if (character == 'V') {
toReturn = 'v';
} else if (character == 'W') {
toReturn = 'w';
} else if (character == 'X') {
toReturn = 'x';
} else if (character == 'Y') {
toReturn = 'y';
} else if (character == 'Z') {
toReturn = 'z';
}
return toReturn;
}
public static char charToUpperCase(char character) {
char toReturn;
toReturn = character;
if (character == 'a') {
toReturn = 'A';
} else if (character == 'b') {
toReturn = 'B';
} else if (character == 'c') {
toReturn = 'C';
} else if (character == 'd') {
toReturn = 'D';
} else if (character == 'e') {
toReturn = 'E';
} else if (character == 'f') {
toReturn = 'F';
} else if (character == 'g') {
toReturn = 'G';
} else if (character == 'h') {
toReturn = 'H';
} else if (character == 'i') {
toReturn = 'I';
} else if (character == 'j') {
toReturn = 'J';
} else if (character == 'k') {
toReturn = 'K';
} else if (character == 'l') {
toReturn = 'L';
} else if (character == 'm') {
toReturn = 'M';
} else if (character == 'n') {
toReturn = 'N';
} else if (character == 'o') {
toReturn = 'O';
} else if (character == 'p') {
toReturn = 'P';
} else if (character == 'q') {
toReturn = 'Q';
} else if (character == 'r') {
toReturn = 'R';
} else if (character == 's') {
toReturn = 'S';
} else if (character == 't') {
toReturn = 'T';
} else if (character == 'u') {
toReturn = 'U';
} else if (character == 'v') {
toReturn = 'V';
} else if (character == 'w') {
toReturn = 'W';
} else if (character == 'x') {
toReturn = 'X';
} else if (character == 'y') {
toReturn = 'Y';
} else if (character == 'z') {
toReturn = 'Z';
}
return toReturn;
}
public static boolean charIsUpperCase(char character) {
boolean isUpper;
isUpper = false;
if (character == 'A') {
isUpper = true;
} else if (character == 'B') {
isUpper = true;
} else if (character == 'C') {
isUpper = true;
} else if (character == 'D') {
isUpper = true;
} else if (character == 'E') {
isUpper = true;
} else if (character == 'F') {
isUpper = true;
} else if (character == 'G') {
isUpper = true;
} else if (character == 'H') {
isUpper = true;
} else if (character == 'I') {
isUpper = true;
} else if (character == 'J') {
isUpper = true;
} else if (character == 'K') {
isUpper = true;
} else if (character == 'L') {
isUpper = true;
} else if (character == 'M') {
isUpper = true;
} else if (character == 'N') {
isUpper = true;
} else if (character == 'O') {
isUpper = true;
} else if (character == 'P') {
isUpper = true;
} else if (character == 'Q') {
isUpper = true;
} else if (character == 'R') {
isUpper = true;
} else if (character == 'S') {
isUpper = true;
} else if (character == 'T') {
isUpper = true;
} else if (character == 'U') {
isUpper = true;
} else if (character == 'V') {
isUpper = true;
} else if (character == 'W') {
isUpper = true;
} else if (character == 'X') {
isUpper = true;
} else if (character == 'Y') {
isUpper = true;
} else if (character == 'Z') {
isUpper = true;
}
return isUpper;
}
public static boolean charIsLowerCase(char character) {
boolean isLower;
isLower = false;
if (character == 'a') {
isLower = true;
} else if (character == 'b') {
isLower = true;
} else if (character == 'c') {
isLower = true;
} else if (character == 'd') {
isLower = true;
} else if (character == 'e') {
isLower = true;
} else if (character == 'f') {
isLower = true;
} else if (character == 'g') {
isLower = true;
} else if (character == 'h') {
isLower = true;
} else if (character == 'i') {
isLower = true;
} else if (character == 'j') {
isLower = true;
} else if (character == 'k') {
isLower = true;
} else if (character == 'l') {
isLower = true;
} else if (character == 'm') {
isLower = true;
} else if (character == 'n') {
isLower = true;
} else if (character == 'o') {
isLower = true;
} else if (character == 'p') {
isLower = true;
} else if (character == 'q') {
isLower = true;
} else if (character == 'r') {
isLower = true;
} else if (character == 's') {
isLower = true;
} else if (character == 't') {
isLower = true;
} else if (character == 'u') {
isLower = true;
} else if (character == 'v') {
isLower = true;
} else if (character == 'w') {
isLower = true;
} else if (character == 'x') {
isLower = true;
} else if (character == 'y') {
isLower = true;
} else if (character == 'z') {
isLower = true;
}
return isLower;
}
public static boolean charIsLetter(char character) {
return charIsUpperCase(character) || charIsLowerCase(character);
}
public static boolean charIsNumber(char character) {
boolean isNumber;
isNumber = false;
if (character == '0') {
isNumber = true;
} else if (character == '1') {
isNumber = true;
} else if (character == '2') {
isNumber = true;
} else if (character == '3') {
isNumber = true;
} else if (character == '4') {
isNumber = true;
} else if (character == '5') {
isNumber = true;
} else if (character == '6') {
isNumber = true;
} else if (character == '7') {
isNumber = true;
} else if (character == '8') {
isNumber = true;
} else if (character == '9') {
isNumber = true;
}
return isNumber;
}
public static boolean charIsWhiteSpace(char character) {
boolean isWhiteSpace;
isWhiteSpace = false;
if (character == ' ') {
isWhiteSpace = true;
} else if (character == '\t') {
isWhiteSpace = true;
} else if (character == '\n') {
isWhiteSpace = true;
} else if (character == '\r') {
isWhiteSpace = true;
}
return isWhiteSpace;
}
public static boolean charIsSymbol(char character) {
boolean isSymbol;
isSymbol = false;
if (character == '!') {
isSymbol = true;
} else if (character == '\"') {
isSymbol = true;
} else if (character == '#') {
isSymbol = true;
} else if (character == '$') {
isSymbol = true;
} else if (character == '%') {
isSymbol = true;
} else if (character == '&') {
isSymbol = true;
} else if (character == '\'') {
isSymbol = true;
} else if (character == '(') {
isSymbol = true;
} else if (character == ')') {
isSymbol = true;
} else if (character == '*') {
isSymbol = true;
} else if (character == '+') {
isSymbol = true;
} else if (character == ',') {
isSymbol = true;
} else if (character == '-') {
isSymbol = true;
} else if (character == '.') {
isSymbol = true;
} else if (character == '/') {
isSymbol = true;
} else if (character == ':') {
isSymbol = true;
} else if (character == ';') {
isSymbol = true;
} else if (character == '<') {
isSymbol = true;
} else if (character == '=') {
isSymbol = true;
} else if (character == '>') {
isSymbol = true;
} else if (character == '?') {
isSymbol = true;
} else if (character == '@') {
isSymbol = true;
} else if (character == '[') {
isSymbol = true;
} else if (character == '\\') {
isSymbol = true;
} else if (character == ']') {
isSymbol = true;
} else if (character == '^') {
isSymbol = true;
} else if (character == '_') {
isSymbol = true;
} else if (character == '`') {
isSymbol = true;
} else if (character == '{') {
isSymbol = true;
} else if (character == '|') {
isSymbol = true;
} else if (character == '}') {
isSymbol = true;
} else if (character == '~') {
isSymbol = true;
}
return isSymbol;
}
public static void delete(Object object) {
// Java has garbage collection.
}
}