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

    Class AList<T>

    Class AList defines a list of typed objects.

    Type Parameters

    • T
    Index

    Constructors

    • Create a new list.

      Type Parameters

      • T

      Parameters

      • genericType: string

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

      Returns AList<T>

    Methods

    • Get an iterator to use in "for of" loops.

      Returns ArrayIterator<T>

    • Add an element.

      Parameters

      • element: T

        the element to add.

      Returns void

    • Add an element at a certain index.

      Parameters

      • index: number

        the index to add at.

      • element: T

        the element to add.

      Returns void

    • Add a list of elements.

      Parameters

      Returns void

    • Add an untyped object.

      Parameters

      • element: Object

        the element to add.

      Returns void

    • Add a list of untyped objects.

      Parameters

      • list: AList<Object>

        the list.

      Returns void

    • Clear the list.

      Returns void

    • Get an element.

      Parameters

      • index: number

        the index of the element.

      Returns T

      the element.

    • Get the generic type of the elements.

      Returns string

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

    • Get an untyped object.

      Parameters

      • index: number

        the index of the object.

      Returns Object

      the element.

    • Remove an element.

      Parameters

      • index: number

        the index to remove at.

      Returns T

      the removed element.

    • Set an element.

      Parameters

      • index: number

        the index of the element.

      • element: T

        the element.

      Returns void

    • Set an untyped element.

      Parameters

      • index: number

        the index of the element.

      • element: Object

        the element.

      Returns void

    • Get the number of elements.

      Returns number

      the number of elements.

    • Get a native array.

      Returns T[]

      a native array.

    • Convert the object to a string.

      Returns string

      the string form of the object.

    • Create a list from a native array.

      Type Parameters

      • T2

      Parameters

      • list: T2[]
      • genericType: string

      Returns AList<T2>

      AList