PersonCollection

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

NameTypeAccessDescription
countintReadGets the number of persons contained in the collection.

Methods

SignatureDescription
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) → booleanRemoves 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) → booleanDetermines whether the collection contains a specific person.
getCount() → intGets the number of persons contained in the collection.
get(index: int) → PersonGets or sets a person at the specified index.
set(index: int, value: Person)Calls set(index, value) on this PersonCollection instance.

See Also