public final class NamedRangeCollection extends NamedCollection<NamedRange>
NamedRange objects.| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
NamedRange item)
Inserts the specified element at the specified index in the collection.
|
boolean |
add(NamedRange item)
Adds the specified element to the collection.
|
void |
clear()
Removes all elements from the collection.
|
NamedRange |
get(int index)
Gets the element at the specified index.
|
NamedRange |
remove(int index)
Removes the element at the specified index.
|
boolean |
remove(NamedRange item)
Removes the specified element from the collection.
|
NamedRange |
set(int index,
NamedRange value)
Sets the element at the specified index.
|
addNamedCollectionListener, contains, get, onCollectionChanged, removeNamedCollectionListeneraddCollectionListener, contains, getWorkbook, indexOf, iterator, removeCollectionListener, size, trackAdd, trackClear, trackMove, trackRemove, trackReplaceaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic boolean add(NamedRange item)
add in interface java.util.Collection<NamedRange>add in class java.util.AbstractCollection<NamedRange>item - The element to add to the collection.public void add(int index,
NamedRange item)
index - The zero-based index at which item should be inserted.item - The element to insert into the collection.public NamedRange remove(int index)
index - The zero-based index of the element to remove.public boolean remove(NamedRange item)
item - The element to remove from the collection.true if item was successfully removed from the collection; otherwise, false.public void clear()
clear in interface java.util.Collection<NamedRange>clear in class java.util.AbstractCollection<NamedRange>public NamedRange get(int index)
get in class UndoableCollection<NamedRange>index - The zero-based index of the element to get or set.public NamedRange set(int index, NamedRange value)
index - The zero-based index of the element to get or set.value - The element at the specified index.