Java Utililty Methods Char Convert To

List of utility methods to do Char Convert To

Description

The list of methods to do Char Convert To are organized into topic(s).

Method

booleanconvertCharToBoolean(final char value)
convert Char To Boolean
return (value == ABAP_TRUE);
Object[]convertCharToCharacterArray(final Object originalArray)
convert Char To Character Array
final char[] original = (char[]) originalArray;
final int len = original.length;
final Character[] converted = new Character[len];
for (int i = 0; i < converted.length; i++) {
    converted[i] = Character.valueOf(original[i]);
return converted;
intconvertCharToInt(char input)
convert Char To Int
if ((int) input >= (int) 'A') {
    return ((int) input - (int) 'A' + 10);
} else {
    return ((int) input - (int) '0');
voidconvertCharToShort(final char[] tmp, final short[] buffer)
Convert char to short.
for (int i = 0; i < buffer.length; i++)
    buffer[i] = (short) tmp[i];
StringconvertCharToSimpleRegex(String str, char lastChar, char currentChar)
convert Char To Simple Regex
if (Character.isLetter(currentChar)) {
    if (Character.isLetter(lastChar)) {
    } else if (Character.isDigit(lastChar)) {
        str += "N";
    } else {
        if (lastChar != '\0') {
            str += Character.toString(lastChar);
} else if (Character.isDigit(currentChar)) {
    if (Character.isLetter(lastChar)) {
        str += "W";
    } else if (Character.isDigit(lastChar)) {
    } else {
        if (lastChar != '\0') {
            str += Character.toString(lastChar);
} else {
    if (Character.isLetter(lastChar)) {
        str += "W";
    } else if (Character.isDigit(lastChar)) {
        str += "N";
    } else {
        if (lastChar != '\0') {
            str += Character.toString(lastChar);
return str;