Class: NumberConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
8.3.0

F24340-01

QuickNav


NumberConverterFactory

Version:
  • 8.3.0
Since:
  • 0.6.0
Module:
  • ojvalidationfactory-number

Module usage

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

Javascript Import Format
define(['ojs/ojvalidationfactory-number'], function(validationfactoryNumber) {
 // Application should call API on validationfactoryNumber.NumberConverterFactory 
})
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/ojvalidationfactory-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.

Deprecated:
Since Description
8.0.0 Directly create new instances of NumberConverter instead.
A factory implementation to create the built-in number converter of type oj.IntlNumberConverter.
Deprecated:
Since Description
8.0.0 Directly create new instances of NumberConverter instead.

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