public final class NodeGroupCollection extends AbstractList<String>
modCount
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
String item)
Inserts an element into the collection at the specified index.
|
void |
clear()
Removes all elements from the collection.
|
boolean |
contains(Object o)
Determines whether a group name is in the collection.
|
String |
get(int index)
Gets the group at the specified index.
|
Node |
getNode()
The
Node the collection belongs to. |
int |
indexOf(Object o)
Determines the index of a specific group in the collection.
|
String |
remove(int index)
Removes an element from the collection at the specified index.
|
boolean |
remove(String item)
Removes the group from the collection.
|
String |
set(int index,
String value)
Sets the group at the specified index.
|
int |
size()
Gets the number of elements contained in the
NodeGroupCollection instance. |
add, addAll, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public int size()
NodeGroupCollection
instance.size
in interface Collection<String>
size
in interface List<String>
size
in class AbstractCollection<String>
public int indexOf(Object o)
public boolean contains(Object o)
contains
in interface Collection<String>
contains
in interface List<String>
contains
in class AbstractCollection<String>
o
- The group name to locate in the collection. The value can be null.public void add(int index, String item)
add
in interface List<String>
add
in class AbstractList<String>
index
- The zero based index at which to add the element.item
- The item to insert. Cannot be null.NullPointerException
- Raised if [item] is null.IllegalArgumentException
- index is less than 0.-or-index is equal to or greater than the collection count.public void clear()
clear
in interface Collection<String>
clear
in interface List<String>
clear
in class AbstractList<String>
public boolean remove(String item)
item
- The group to be removed from the collection.NullPointerException
- Raised if [item] is null.public String remove(int index)
remove
in interface List<String>
remove
in class AbstractList<String>
index
- The zero based index at which to remove the element.IllegalArgumentException
- index is less than 0.-or-index is equal to or greater than the collection count.public String get(int index)
Copyright © 2021. All rights reserved.