public class BooleanHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
FALSE_VALUES |
static String[] |
TRUE_VALUES |
Constructor and Description |
---|
BooleanHelper() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final String[] TRUE_VALUES
public static final String[] FALSE_VALUES
public static boolean isBooleanToken(String value)
public static boolean isFalseToken(String value)
public static boolean isTrueToken(String value)
public static boolean toBoolean(String value)
public static boolean toBoolean(Object value, boolean defaultValue)
public static boolean toBoolean(String value, boolean defaultValue)
Copyright © 2018 Liferay, Inc.. All rights reserved.