This project has retired. For details please refer to its Attic page.
BooleanParser (Sqoop 1.4.4 API)

org.apache.sqoop.lib
Class BooleanParser

java.lang.Object
  extended by org.apache.sqoop.lib.BooleanParser

public final class BooleanParser
extends java.lang.Object

Parse string representations of boolean values into boolean scalar types.


Method Summary
static boolean valueOf(java.lang.String s)
          Return a boolean based on the value contained in the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

valueOf

public static boolean valueOf(java.lang.String s)
Return a boolean based on the value contained in the string.

The following values are considered true: "true", "t", "yes", "on", "1".

All other values, including 'null', are false.

All comparisons are case-insensitive.



Copyright © 2013 The Apache Software Foundation