# IndexedSet

class Animation.IndexedSet()

  Provides the functionality of a `Set` with the addition of a monotonically-increasing index associated with each element.

Constructors

- `constructor()`

Methods

- `add()`

- `getIndex()`

- `isEmpty()`

- `toArray()`

## Constructors

IndexedSet.constructor()
  Return type

    IndexedSet <T>

## Methods

### add

IndexedSet.add(value)
  Arguments

    - value (`T()`) – None

  Return type

    void

### getIndex

IndexedSet.getIndex(value)
  Arguments

    - value (`T()`) – None

  Return type

    number

### isEmpty

IndexedSet.isEmpty()
  Return type

    boolean

### toArray

IndexedSet.toArray()

  Returns an array containing each element of the set placed at its assigned index.

  Return type

    [T]