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.
|
protected RemoveOnlyListBase()
Initializes a new instance of the RemoveOnlyListBase{T}
class.
public boolean isReadOnly()
Gets a value indicating whether the collection is read-only.
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.
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.