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.
| Modifier | Constructor and Description |
|---|---|
protected |
RemoveOnlyListBase()
Initializes a new instance of the
RemoveOnlyListBase{T} class. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all items from the collection.
|
boolean |
isReadOnly()
Gets a value indicating whether the collection is read-only.
|
boolean |
remove(T item)
Removes the first occurrence of a specific object from the collection.
|
void |
removeAt(int index)
Removes the item at the specified index.
|
void |
removeFromDocument(T item) |
addInternally, contains, get_Item, getCount, getInnerList, indexOf, iteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected RemoveOnlyListBase()
Initializes a new instance of the RemoveOnlyListBase{T} class.
public final void clear()
Removes all items from the collection.
public boolean isReadOnly()
Gets a value indicating whether the collection is read-only.
public final boolean remove(T item)
Removes the first occurrence of a specific object from the collection.
item - The item to remove from the collection.item was successfully removed; otherwise false.public final void removeAt(int index)
Removes the item at the specified index.
index - The zero-based index of the item to remove.public void removeFromDocument(T item)
Copyright © 2026. All rights reserved.