Last updated

API / geotoolkit / util / Format / Format

Class: Format

util.Format.Format

Defines abstract class for formatting numbers, dates and time

Hierarchy

Table of contents

Constructors
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>

Gets all the properties pertaining to this object

Returns

Record<string, any>


setProperties

setProperties(properties?): Format

Sets all the properties pertaining to this object

Parameters

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

Returns

Format

this


getClassName

Static getClassName(): string

Returns

string