public final class BooleanContext extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
NBSP
Use 'Non-Breaking SPace' character instead of ardinary 'space' character.
|
Constructor and Description |
---|
BooleanContext() |
BooleanContext(String trueValue,
String falseValue) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureFormat(Format format,
Object object) |
Boolean |
enforce(Boolean object)
Will force the object to conform to the context's specification.
|
String |
format(Object object) |
F |
getFormat() |
protected String |
handleFormatException(Format format,
Object object) |
protected Boolean |
handleParseException(Format format,
String string) |
<G> TypeContext<G> |
newFormat(F format) |
T |
parse(CharSequence string) |
public static final boolean NBSP
public Boolean enforce(Boolean object)
TypeContext
public final String format(Object object)
format
in interface TypeContext<T>
TypeContext.format(java.lang.Object)
public final F getFormat()
public final <G> TypeContext<G> newFormat(F format)
public final T parse(CharSequence string)
parse
in interface TypeContext<T>
TypeContext.parse(CharSequence)
Copyright © 2019 Optimatika. All rights reserved.