public class WBSCodeMaskCollection extends AbstractList<T>
Represents a collection of WBSCodeMask objects.
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
WBSCodeMask element)
Inserts the specified element at the specified position in this list.
|
boolean |
add(WBSCodeMask item)
Adds the specified item to this collection.
|
void |
clear()
Removes all items from this collection.
|
boolean |
contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
|
WBSCodeMask |
get(int index) |
int |
indexOf(Object item) |
boolean |
isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
|
Iterator<WBSCodeMask> |
iterator()
Returns an enumerator for this collection.
|
WBSCodeMask |
remove(int index)
Removes the element at the specified position in this list.
|
boolean |
remove(Object item)
Removes the first occurrence of a specific object from this collection.
|
int |
size()
Gets the number of elements contained in this collection.
|
void |
sort(Comparator<? super T> c) |
List<WBSCodeMask> |
toList()
Converts a WBSCodeMaskCollection to a list of
WBSCodeMask objects. |
addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, set, subList
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public boolean add(WBSCodeMask item)
Adds the specified item to this collection.
add
in interface Collection<WBSCodeMask>
add
in interface List<WBSCodeMask>
add
in class AbstractList<WBSCodeMask>
item
- the specified item to add to this collection.public final void clear()
Removes all items from this collection.
clear
in interface Collection<WBSCodeMask>
clear
in interface List<WBSCodeMask>
clear
in class AbstractList<WBSCodeMask>
public final boolean contains(Object item)
Returns true if the specified item is found in this collection; otherwise, false.
contains
in interface Collection<WBSCodeMask>
contains
in interface List<WBSCodeMask>
contains
in class AbstractCollection<WBSCodeMask>
item
- the specified item to find.public final int indexOf(Object item)
indexOf
in interface List<WBSCodeMask>
indexOf
in class AbstractList<WBSCodeMask>
public final boolean isReadOnly()
Gets a value indicating whether this collection is read-only; otherwise, false.
public final Iterator<WBSCodeMask> iterator()
Returns an enumerator for this collection.
iterator
in interface Iterable<WBSCodeMask>
iterator
in interface Collection<WBSCodeMask>
iterator
in interface List<WBSCodeMask>
iterator
in class AbstractList<WBSCodeMask>
public final boolean remove(Object item)
Removes the first occurrence of a specific object from this collection.
remove
in interface Collection<WBSCodeMask>
remove
in interface List<WBSCodeMask>
remove
in class AbstractCollection<WBSCodeMask>
item
- the specified object to remove.public final int size()
Gets the number of elements contained in this collection.
size
in interface Collection<WBSCodeMask>
size
in interface List<WBSCodeMask>
size
in class AbstractCollection<WBSCodeMask>
public final List<WBSCodeMask> toList()
Converts a WBSCodeMaskCollection to a list of WBSCodeMask
objects.
WBSCodeMask
objects.public WBSCodeMask remove(int index)
remove
in interface List<WBSCodeMask>
remove
in class AbstractList<WBSCodeMask>
index
- public void add(int index, WBSCodeMask element)
add
in interface List<WBSCodeMask>
add
in class AbstractList<WBSCodeMask>
index
- element
- public WBSCodeMask get(int index)
get
in interface List<WBSCodeMask>
get
in class AbstractList<WBSCodeMask>
index
- public void sort(Comparator<? super T> c)
c
-