Class: NumberConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

QuickNav


NumberConverterFactory

Version:
  • 7.1.0
Since:
  • 0.6
Module:
  • ojvalidation-number

Module usage

See JET Module Loading for an overview of module usage within JET.

Typescript Import Format
//This class is not exported from module and can not be accessed in runtime.
//However to enable typechecking and ducktyping, you can access it as an interface.
import {NumberConverterFactory} from "ojs/ojvalidation-number";

//To access this type in your code,
class MyClass implements NumberConverterFactory{
//or,
let myVariable: NumberConverterFactory;

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

A factory implementation to create the built-in number converter of type oj.IntlNumberConverter.

Methods

createConverter(options) → {oj.IntlNumberConverter}

Creates an immutable (jet) number converter instance.
Parameters:
Name Type Argument Description
options oj.IntlNumberConverter.ConverterOptions <optional>
an object literal used to provide optional information to initialize the jet number converter with. For details on what to pass for options, refer to oj.IntlNumberConverter
Returns:
Type
oj.IntlNumberConverter