
## ThreadedCommentAuthorCollection class

Represents all persons who .

```js
new ThreadedCommentAuthorCollection()
```

## Methods

| Name | Description |
| --- | --- |
| [add(name, userId, providerId)](#add) | Adds one thread comment person. |
| [add()](#add-1) | Reserved for internal use. |
| [clear()](#clear) |  |
| [contains()](#contains) | Reserved for internal use. |
| [get(index)](#get) | Gets the person who create threaded comments. |
| [get(name)](#get-1) | Gets the person who create threaded comments. |
| [get()](#get-2) | Reserved for internal use. |
| [getCount()](#getcount) |  |
| [getCurrentPerson()](#getcurrentperson) | Gets and sets the current user. |
| [indexOf(author)](#indexof) | Gets the index of ThreadedCommentAuthor object |
| [indexOf()](#indexof-1) | Reserved for internal use. |
| [iterator()](#iterator) |  |
| [removeAt()](#removeat) |  |
| [setCurrentPerson()](#setcurrentperson) | Gets and sets the current user. |

### add(name, userId, providerId) {#add}

Adds one thread comment person.

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The name of the person. |
| userId | String |  |
| providerId | String | The id of the provider |

**Returns:** Number — `Number`

### add() {#add-1}

Reserved for internal use.

### clear() {#clear}

### contains() {#contains}

Reserved for internal use.

### get(index) {#get}

Gets the person who create threaded comments.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The index |

**Returns:** ThreadedCommentAuthor — `ThreadedCommentAuthor`

### get(name) {#get-1}

Gets the person who create threaded comments.

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The name of the author. |

**Returns:** ThreadedCommentAuthor — `ThreadedCommentAuthor`

### get() {#get-2}

Reserved for internal use.

### getCount() {#getcount}

### getCurrentPerson() {#getcurrentperson}

Gets and sets the current user.

### indexOf(author) {#indexof}

Gets the index of ThreadedCommentAuthor object

| Parameter | Type | Description |
| --- | --- | --- |
| author | ThreadedCommentAuthor | The ThreadedCommentAuthor object |

**Returns:** Number — `Number` The index in the ThreadedCommentAuthor collection

### indexOf() {#indexof-1}

Reserved for internal use.

### iterator() {#iterator}

### removeAt() {#removeat}

### setCurrentPerson() {#setcurrentperson}

Gets and sets the current user.
