Skip to content

API / geotoolkit / util / Format / Format

Class: Format

util.Format.Format

Defines abstract class for formatting numbers, dates and time

Hierarchy

Table of contents

Constructors
  • [new Format()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.util.format.format.md#new format())
Methods

Contents

Constructors

new Format()

• new Format()

Methods

clone

▸ clone(): Format

All inheritors should implement copy constructor or provide custom implementation for this method

Returns

Format

clone


copyConstructor

▸ Protected copyConstructor(src): Format

Parameters

Name Type
srcFormat

Returns

Format


format

▸ Abstract format(num): string

Formats object to string

Parameters

Name Type Description
numstring | numbernumber

Returns

string


getClassName

▸ getClassName(): string

Returns

string


getProperties

▸ getProperties(): Record<string, any&gt;

Gets all the properties pertaining to this object

Returns

Record<string, any&gt;


setProperties

▸ setProperties(properties?): Format

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesRecord<string, any&gt;An object containing the properties to set

Returns

Format

this


getClassName

▸ Static getClassName(): string

Returns

string