Orbit 3D Mapping Viewer SDK
    Preparing search index...

    Class AMap<T>

    Class AMap defines a map of typed key-value pairs.

    Type Parameters

    • T
    Index

    Constructors

    • Create a new map.

      Type Parameters

      • T

      Parameters

      • genericType: string

        the generic type of the elements in the map, like MapObject.TYPE for example.

      Returns AMap<T>

    Methods

    • Clear the map.

      Returns void

    • Get a value.

      Parameters

      • key: string

        the key.

      Returns T

      the value (null if not found).

    • Get a value with an optional default.

      Parameters

      • key: string

        the key.

      • defaultValue: T

        the default value.

      Returns T

      the value, or the default value if the key was not found.

    • Get a boolean value.

      Parameters

      • key: string

        the key.

      • defaultValue: boolean

        the default value to return if the key is not found.

      Returns boolean

      a value.

    • Get a float value.

      Parameters

      • key: string

        the key.

      • defaultValue: number

        the default value to return if the key is not found.

      Returns number

      a value.

    • Get the generic type of the elements.

      Returns string

      the generic type of the elements, like MapObject.TYPE for example.

    • Get an integer value.

      Parameters

      • key: string

        the key.

      • defaultValue: number

        the default value to return if the key is not found.

      Returns number

      a value.

    • Get an object value.

      Parameters

      • key: string

        the key.

      • defaultValue: Object

        the default value to return if the key is not found.

      Returns Object

      a value.

    • Get a string value.

      Parameters

      • key: string

        the key.

      • defaultValue: string

        the default value to return if the key is not found.

      Returns string

      a value.

    • List all keys.

      Returns AList<string>

      all keys.

    • List all values.

      Returns AList<T>

      all values.

    • Remove an element.

      Parameters

      • key: string

        the key of the element to remove.

      Returns void

    • Set a value.

      Parameters

      • key: string

        the key.

      • value: T

        the value.

      Returns void

    • Set a boolean value.

      Parameters

      • key: string

        the key.

      • value: boolean

        the value to set.

      Returns void

    • Set a float value.

      Parameters

      • key: string

        the key.

      • value: number

        the value to set.

      Returns void

    • Set an integer value.

      Parameters

      • key: string

        the key.

      • value: number

        the value to set.

      Returns void

    • Set an object value.

      Parameters

      • key: string

        the key.

      • value: Object

        the value to set.

      Returns void

    • Set a string value.

      Parameters

      • key: string

        the key.

      • value: string

        the value to set.

      Returns void

    • Returns this instance as a plain javascript object.

      Returns object

      an javascript object instance.

    • Convert the object to a string.

      Returns string

      the string form of the object.