RemoveOnlyListBase
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.common.ReadOnlyListBase
public abstract class RemoveOnlyListBase<T> extends ReadOnlyListBase<T>
Provides the abstract base class for a strongly typed remove-only list.
T : The type of the element.
| Method | Description |
|---|---|
| isReadOnly() | Gets a value indicating whether the collection is read-only. |
| clear() | Removes all items from the collection. |
| remove(T item) | Removes the first occurrence of a specific object from the collection. |
| removeAt(int index) | Removes the item at the specified index. |
| removeFromDocument(T item) |
public boolean isReadOnly()
Gets a value indicating whether the collection is read-only.
Returns: boolean - Returns true if the collection is read-only; otherwise, false.
public final void clear()
Removes all items from the collection.
public final boolean remove(T item)
Removes the first occurrence of a specific object from the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| item | T | The item to remove from the collection. |
Returns: boolean - True if item was successfully removed; otherwise false.
public final void removeAt(int index)
Removes the item at the specified index.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | int | The zero-based index of the item to remove. |
public void removeFromDocument(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.