public class BooleanFormatter extends AbstractFormatter<Boolean>
| Modifier and Type | Field and Description | 
|---|---|
static BooleanFormatter | 
BOOL  | 
static String | 
DEFAULT_PATTERN  | 
static String | 
PATTERN_BOOL  | 
static String | 
PATTERN_QUERY  | 
static String | 
PATTERN_SWITCH  | 
static BooleanFormatter | 
QUERY  | 
static BooleanFormatter | 
SWITCH  | 
| Modifier | Constructor and Description | 
|---|---|
  | 
BooleanFormatter()  | 
protected  | 
BooleanFormatter(String pattern)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
format(Boolean value)
Formats an instance into its literal representation. 
 | 
static BooleanFormatter | 
getInstance(String pattern)  | 
String | 
getPattern()  | 
Boolean | 
parse(String str)
Parses a literal representation into an instance of type  
T. | 
static Boolean | 
parseBoolean(String str)  | 
parseError, parseError, parseHexInt, parseHexIntpublic static final String PATTERN_BOOL
public static final String PATTERN_QUERY
public static final String PATTERN_SWITCH
public static final String DEFAULT_PATTERN
public static final BooleanFormatter BOOL
public static final BooleanFormatter QUERY
public static final BooleanFormatter SWITCH
@Nonnull public static BooleanFormatter getInstance(@Nullable String pattern)
@Nullable public static Boolean parseBoolean(@Nullable String str) throws ParseException
ParseException@Nullable public String format(@Nullable Boolean value)
FormatterFormats an instance into its literal representation.
The resulting String may be set as an argument to Formatter.parse(java.lang.String)
 resulting in a similar instance as the input.
value - the instance to be formattedString representing the instance's state.@Nullable public Boolean parse(@Nullable String str) throws ParseException
FormatterParses a literal representation into an instance of type T.
The resulting instance T may be set as an argument to Formatter.format(T)
 resulting in an equal String as the input.
str - the String to be parsedT whose state is initialized given the
 parameters of the input String.ParseException - if the String cannot be parsed.