Java Char Convert To convertCharToBoolean(final char value)

Here you can find the source of convertCharToBoolean(final char value)

Description

convert Char To Boolean

License

Open Source License

Parameter

Parameter Description
value Character which is used in ABAP as boolean value

Return

boolean true if the value is 'X'

Declaration

@Deprecated
public static boolean convertCharToBoolean(final char value) 

Method Source Code

//package com.java2s;
/*/*from ww w  . ja va2  s.c o  m*/
 * [y] hybris Platform
 *
 * Copyright (c) 2000-2014 hybris AG
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of hybris
 * ("Confidential Information"). You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the
 * license agreement you entered into with hybris.
 *
 *
 */

public class Main {
    @Deprecated
    private static final char ABAP_TRUE = 'X';

    /**
     * @param value
     *           Character which is used in ABAP as boolean value
     * @return boolean true if the value is 'X'
     */
    @Deprecated
    public static boolean convertCharToBoolean(final char value) {

        return (value == ABAP_TRUE);
    }
}

Related

  1. convertCharArray(char[] arr)
  2. convertCharArrayToIntArray(char[] chars)
  3. convertChars(String orig_name, String chars, char toChar)
  4. convertCharSet(String str, String desCharset)
  5. convertCharsToUnicodeChars(final String s, final boolean toLowerCase)
  6. convertCharToCharacterArray(final Object originalArray)
  7. convertCharToInt(char input)
  8. convertCharToShort(final char[] tmp, final short[] buffer)
  9. convertCharToSimpleRegex(String str, char lastChar, char currentChar)