Class: NumberConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
17.1.0

G12196-01

Since:
  • 0.6.0
Module:
  • ojvalidationfactory-number

Note: This class is deprecated since 8.0.0. Directly create new instances of NumberConverter instead.

QuickNav

Description

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


Usage

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;

For additional information visit:


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