Package org.ojalgo.type.context
Class BooleanContext
- All Implemented Interfaces:
TypeContext<Boolean>
-
Field Summary
FieldsFields inherited from class org.ojalgo.type.context.FormatContext
NBSP
-
Constructor Summary
ConstructorsModifierConstructorDescriptionBooleanContext
(String trueValue, String falseValue) private
BooleanContext
(Format format) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureFormat
(Format format, Object object) Will force the object to conform to the context's specification.protected String
handleFormatException
(Format format, Object object) protected Boolean
handleParseException
(Format format, String string) Methods inherited from class org.ojalgo.type.context.FormatContext
format, format, getFormat, isConfigured, parse, withFormat
-
Field Details
-
DEFAULT_FORMAT
-
-
Constructor Details
-
BooleanContext
public BooleanContext() -
BooleanContext
-
BooleanContext
-
-
Method Details
-
enforce
Description copied from interface:TypeContext
Will force the object to conform to the context's specification. The default implementation formats aString
and then parses that back to an object (of the original type). -
configureFormat
- Specified by:
configureFormat
in classFormatContext<Boolean>
-
handleFormatException
- Specified by:
handleFormatException
in classFormatContext<Boolean>
-
handleParseException
- Specified by:
handleParseException
in classFormatContext<Boolean>
-