Java String to Boolean atob(String s)

Here you can find the source of atob(String s)

Description

atob

License

Open Source License

Declaration

public static boolean atob(String s) 

Method Source Code

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

public class Main {
    public static boolean atob(String s) {
        return (s != null && (s.equals("1") || s.equalsIgnoreCase("true") || s.equalsIgnoreCase("yes")));
    }/*from w  w  w.j a v a  2 s  .  c o m*/
}

Related

  1. asBoolean(String value)
  2. asBoolean(String value, boolean defaultValue)
  3. atob(final String str, final boolean def)
  4. atob(String pString_)
  5. atob(String s)
  6. convertStringToBoolean(String pValue)
  7. convertStringToBoolean(String strBoolean)
  8. convertStringToBoolean(String string)
  9. convertStringToBoolean(String string)