ReadOnlyListBase
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.watermark.internal.IReadOnlyList
public abstract class ReadOnlyListBase<T> implements IReadOnlyList<T>
Provides the abstract base class for a strongly typed read-only list.
T : The type of the element.
| Method | Description |
|---|---|
| getCount() | Gets the number of elements contained in the collection. |
| getInnerList() | |
| get_Item(int index) | Gets the element at the specified index in the collection. |
| contains(T item) | Determines whether the collection contains a specific item. |
| indexOf(T item) | Determines the index of a specific item in the collection. |
| iterator() | Returns an enumerator that iterates through a collection. |
| addInternally(T item) |
public int getCount()
Gets the number of elements contained in the collection.
Returns: int - The number of elements contained in the collection.
public final System.Collections.Generic.List<T> getInnerList()
Returns:
com.aspose.ms.System.Collections.Generic.List
public T get_Item(int index)
Gets the element at the specified index in the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index of the element to get. Value: The element at the specified index. |
Returns: T
public boolean contains(T item)
Determines whether the collection contains a specific item.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | T | The item to locate in the collection. |
Returns: boolean - True if the item is found in the collection; otherwise, false.
public int indexOf(T item)
Determines the index of a specific item in the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | T | The item to locate in the collection. |
Returns: int - The index of item if found in the collection; otherwise, -1.
public Iterator<T> iterator()
Returns an enumerator that iterates through a collection.
Returns:
java.util.Iterator
public void addInternally(T item)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | T |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.