Package org.ojalgo.type.context
Class FormatContext<T>
java.lang.Object
org.ojalgo.type.context.FormatContext<T>
- All Implemented Interfaces:
TypeContext<T>
- Direct Known Subclasses:
BinaryContext
,BooleanContext
,DateContext
,GenericContext
,NumberContext
,StringContext
Abstract base class for TypeContext implementations backed by Format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final Format
static final boolean
Use 'Non-Breaking SPace' character instead of ardinary 'space' character. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
configureFormat
(Format format, Object object) (package private) final Format
format()
final String
protected abstract String
handleFormatException
(Format format, Object object) protected abstract T
handleParseException
(Format format, String string) (package private) final boolean
final T
parse
(CharSequence string) final <G> TypeContext
<G> withFormat
(Format format) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.type.context.TypeContext
enforce
-
Field Details
-
NBSP
public static final boolean NBSPUse 'Non-Breaking SPace' character instead of ardinary 'space' character.- See Also:
-
myConfigured
private boolean myConfigured -
myFormat
-
-
Constructor Details
-
FormatContext
FormatContext(Format format)
-
-
Method Details
-
format
- Specified by:
format
in interfaceTypeContext<T>
- See Also:
-
getFormat
-
parse
- Specified by:
parse
in interfaceTypeContext<T>
- See Also:
-
withFormat
-
configureFormat
-
handleFormatException
-
handleParseException
-
format
-
isConfigured
final boolean isConfigured()
-