public abstract class ReadOnlyListBase<T> extends Object implements com.groupdocs.watermark.internal.IReadOnlyList<T>
Provides the abstract base class for a strongly typed read-only list.
T
: The type of the element.
Modifier | Constructor and Description |
---|---|
protected |
ReadOnlyListBase()
Initializes a new instance of the
ReadOnlyListBase{T} class. |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(T item)
Determines whether the collection contains a specific item.
|
T |
get_Item(int index)
Gets the element at the specified index in the collection.
|
int |
getCount()
Gets the number of elements contained in the collection.
|
int |
indexOf(T item)
Determines the index of a specific item in the collection.
|
Iterator<T> |
iterator()
Returns an enumerator that iterates through a collection.
|
protected ReadOnlyListBase()
Initializes a new instance of the ReadOnlyListBase{T}
class.
public int getCount()
Gets the number of elements contained in the collection.
public T get_Item(int index)
Gets the element at the specified index in the collection.
index
- The zero-based index of the element to get.
Value: The element at the specified index.public boolean contains(T item)
Determines whether the collection contains a specific item.
item
- The item to locate in the collection.public int indexOf(T item)
Determines the index of a specific item in the collection.
item
- The item to locate in the collection.item
if found in the collection; otherwise, -1.