---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/CommentAuthorCollection
---

# CommentAuthorCollection

## Overview

`CommentAuthorCollection` is a class in Aspose.Slides FOSS for Java.
Inherits from: `BaseCollection`, `ICommentAuthorCollection`.

Represents a collection of comment authors in a presentation.

This class provides 13 methods for working with CommentAuthorCollection objects in Java programs.
Available methods include: `addAuthor`, `asICollection`, `asIEnumerable`, `buildAuthor`, `clear`, `findByName`, `findByNameAndInitials`, `get`, `initInternal`, `remove`, `removeAt`, `size`, and 1 additional methods.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `initInternal(authorsPart: CommentAuthorsPart, pkg: OpcPackage, presentation: Presentation)` | Initializes internal backing references that link this collection to the
 underlying OPC package data. |
| `buildAuthor(data: AuthorData)` → `CommentAuthor` | Builds a {@link CommentAuthor} from the given XML-backed {@link AuthorData}. |
| `addAuthor(name: String, initials: String)` → `ICommentAuthor` | Adds a new author with the specified name and initials and returns it |
| `toArray()` → `ICommentAuthor[]` | Returns all authors as an array of ICommentAuthor |
| `findByName(name: String)` → `List` | Returns a list of authors whose name matches the given string |
| `findByNameAndInitials(name: String, initials: String)` → `List` | Returns authors matching both name and initials |
| `removeAt(index: int)` | Removes the author at the specified index |
| `remove(author: ICommentAuthor)` | Deletes the specified author from the collection |
| `clear()` | Removes all authors from the collection |
| `get(index: int)` → `ICommentAuthor` | {@inheritDoc}
  In XML-backed mode, delegates to {@link CommentAuthorsPart#getAuthors()}
 and hydrates the author at the given index. |
| `size()` → `int` | {@inheritDoc}
  In XML-backed mode, returns the count from
 {@link CommentAuthorsPart#getAuthors()}.
 / |
| `asICollection()` → `List` | Provides the authors as a List collection |
| `asIEnumerable()` → `Iterable` | Returns an Iterable over the authors |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)