public class RichBoolean extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FALSE |
static Set<String> |
NEGATIVES |
static String |
NO |
static String |
OFF |
static String |
ON |
static Set<String> |
POSITIVES |
static String |
TRUE |
static String |
YES |
Constructor and Description |
---|
RichBoolean(boolean value) |
RichBoolean(String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean() |
String |
asOnOff() |
String |
asYesNo() |
boolean |
isNegative() |
boolean |
isPositive() |
static boolean |
isValid(String value) |
public static final String TRUE
public static final String FALSE
public static final String ON
public static final String OFF
public static final String YES
public static final String NO
public RichBoolean(boolean value)
public RichBoolean(String value)
Copyright © 2015. All rights reserved.