- All Implemented Interfaces:
TypeContext<String>
StringContext
- Author:
- apete
-
Field Summary
Fields inherited from class org.ojalgo.type.context.FormatContext
NBSP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureFormat(Format format, Object object) Will force the object to conform to the context's specification.protected StringhandleFormatException(Format format, Object object) protected StringhandleParseException(Format format, String string) Methods inherited from class org.ojalgo.type.context.FormatContext
format, getFormat, parse, withFormat
-
Constructor Details
-
StringContext
public StringContext() -
StringContext
-
StringContext
public StringContext(int length)
-
-
Method Details
-
enforce
Description copied from interface:TypeContextWill force the object to conform to the context's specification. The default implementation formats aStringand then parses that back to an object (of the original type). -
configureFormat
- Specified by:
configureFormatin classFormatContext<String>
-
handleFormatException
- Specified by:
handleFormatExceptionin classFormatContext<String>
-
handleParseException
- Specified by:
handleParseExceptionin classFormatContext<String>
-