Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.lang
Class BooleanHelper

java.lang.Object
  extended by oracle.adfnmc.java.lang.BooleanHelper

public class BooleanHelper
extends java.lang.Object


Method Summary
static boolean parseBoolean(java.lang.String s)
          Parses the string as a boolean.
static java.lang.String toString(boolean value)
          Converts the specified boolean to its string representation.
static java.lang.Boolean valueOf(boolean b)
          Answers Boolean.TRUE if the argument is equal to "true" using case insensitive comparison, and Boolean.FALSE representing false otherwise.
static java.lang.Boolean valueOf(java.lang.String string)
          Answers a Boolean representing true if the argument is equal to "true" using case insensitive comparison, and a Boolean representing false otherwise.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

valueOf

public static java.lang.Boolean valueOf(java.lang.String string)
Answers a Boolean representing true if the argument is equal to "true" using case insensitive comparison, and a Boolean representing false otherwise.

Parameters:
string - The name of the desired boolean.
Returns:
the boolean value.

valueOf

public static java.lang.Boolean valueOf(boolean b)
Answers Boolean.TRUE if the argument is equal to "true" using case insensitive comparison, and Boolean.FALSE representing false otherwise.

Parameters:
b - the boolean value.
Returns:
Boolean.TRUE or Boolean.FALSE Global true/false objects.

parseBoolean

public static boolean parseBoolean(java.lang.String s)
Parses the string as a boolean. If the string is not null and is equal to "true", regardless case, then true is returned, otherwise false.

Parameters:
s - The string to parse.
Returns:
A boolean value.
Since:
1.5

toString

public static java.lang.String toString(boolean value)
Converts the specified boolean to its string representation. When the boolean is true answer "true", otherwise answer "false".

Parameters:
value - the boolean
Returns:
the boolean converted to a string

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.