com.liferay.faces.util.helper
Class BooleanHelper

java.lang.Object
  extended by com.liferay.faces.util.helper.BooleanHelper

public class BooleanHelper
extends Object

This class provides additional methods that operate against the javax.lang.Boolean system class.


Field Summary
static String[] FALSE_VALUES
           
static String[] TRUE_VALUES
           
 
Constructor Summary
BooleanHelper()
           
 
Method Summary
static boolean isBooleanToken(String value)
           
static boolean isFalseToken(String value)
           
static boolean isTrueToken(String value)
           
static boolean toBoolean(Object value, boolean defaultValue)
           
static boolean toBoolean(String value)
           
static boolean toBoolean(String value, boolean defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUE_VALUES

public static final String[] TRUE_VALUES

FALSE_VALUES

public static final String[] FALSE_VALUES
Constructor Detail

BooleanHelper

public BooleanHelper()
Method Detail

toBoolean

public static boolean toBoolean(String value)

toBoolean

public static boolean toBoolean(Object value,
                                boolean defaultValue)

toBoolean

public static boolean toBoolean(String value,
                                boolean defaultValue)

isBooleanToken

public static boolean isBooleanToken(String value)

isFalseToken

public static boolean isFalseToken(String value)

isTrueToken

public static boolean isTrueToken(String value)


Copyright © 2015 Liferay, Inc.. All rights reserved.