Java String Value Of valueOfBooleanStr(String str)

Here you can find the source of valueOfBooleanStr(String str)

Description

value Of Boolean Str

License

Open Source License

Declaration

private static Boolean valueOfBooleanStr(String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static Boolean valueOfBooleanStr(String str) {
        return (Boolean.TRUE.equals(Boolean.valueOf(str)) || str.equalsIgnoreCase("yes"));
    }//from   w w w  .  ja va  2s. com
}

Related

  1. valueOf(String value)
  2. valueOf(String value)
  3. valueOf(String value, boolean defaultValue)
  4. valueOfBoolean(final String s)
  5. valueOfBoolean(String string)
  6. valueOfEnum(Class enumClass, String value, E defaultValue)
  7. valueOfEnum(final Class type, final String value)
  8. valueOfIC(Class enumType, String aName)
  9. valueOfIgnoreCase(Class cls, String value)