PersonCollection
Overview
PersonCollection is a class in Aspose.Words FOSS for Java.
Inherits from: Contributor, Iterable<Person>.
Represents a list of persons who are bibliography source contributors.
Edition status of its 10 listed members (a property and its accessor methods are listed separately, overloads once): 10 not yet exercised by a verified example.
This class declares 11 methods for PersonCollection objects in Java programs.
Available methods include: PersonCollection, add, clear, contains, get, getCount, remove, removeAt, set.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the number of persons contained in the collection. |
Methods
| Signature | Description |
|---|---|
PersonCollection() | Initialize a new instance of the PersonCollection class. |
PersonCollection(persons: Iterable<Person>) | Initialize a new instance of the PersonCollection class. |
PersonCollection() | Initialize a new instance of the PersonCollection class. |
add(person: Person) | Adds a Person to the collection. |
remove(person: Person) → boolean | Removes the person from the collection. |
removeAt(index: int) | Removes the person at the specified index. |
clear() | Removes all items from the collection. |
contains(person: Person) → boolean | Determines whether the collection contains a specific person. |
getCount() → int | Gets the number of persons contained in the collection. |
get(index: int) → Person | Gets or sets a person at the specified index. |
set(index: int, value: Person) | Calls set(index, value) on this PersonCollection instance. |