Java Boolean Value From convertBoolean(String value)

Here you can find the source of convertBoolean(String value)

Description

convert Boolean

License

Open Source License

Declaration

private static Boolean convertBoolean(String value) 

Method Source Code

//package com.java2s;

public class Main {

    private static Boolean convertBoolean(String value) {
        if ("true".equalsIgnoreCase(value)) {
            return true;
        }//w  w w  .j  a v  a 2s .  c  o m

        if ("1".equals(value)) {
            return true;
        }

        return false;
    }
}

Related

  1. convertBoolean(final String value)
  2. convertBoolean(Object o)
  3. convertBoolean(String str)
  4. convertBoolean(String str, boolean defaults)
  5. convertBoolean(String value)
  6. convertBoolean2boolean(final Boolean[] pArray)
  7. convertBooleanFromBytes(byte[] byteArray)
  8. convertBooleanValueToInt(String value)