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 WBSCodeMask object to this collection.
|
void |
clear()
Removes all items from the
CalendarExceptionCollection . |
boolean |
contains(Object item)
Returns true if this collection contains the specified item.
|
void |
copyTo(WBSCodeMask[] array,
int arrayIndex)
Copies all the elements of this collection to the specified one-dimensional array starting at the specified
destination array index.
|
WBSCodeMask |
get(int index) |
WBSCodeMask |
remove(int index)
Removes the element at the specified position in this list.
|
boolean |
remove(Object item)
Returns true if the specified item was removed from this collection successfully.
|
int |
size()
Returns the number of items contained in this collection.
|
void |
sort(Comparator<? super T> c) |
List<WBSCodeMask> |
toList()
Returns a list which contains all items from this collection.
|
addAll, equals, hashCode, indexOf, iterator, 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)
add
in interface Collection<WBSCodeMask>
add
in interface List<WBSCodeMask>
add
in class AbstractList<WBSCodeMask>
item
- WBSCodeMask object.public void add(int index, WBSCodeMask element)
add
in interface List<WBSCodeMask>
add
in class AbstractList<WBSCodeMask>
index
- element
- public final void clear()
CalendarExceptionCollection
.clear
in interface Collection<WBSCodeMask>
clear
in interface List<WBSCodeMask>
clear
in class AbstractList<WBSCodeMask>
public final boolean contains(Object item)
contains
in interface Collection<WBSCodeMask>
contains
in interface List<WBSCodeMask>
contains
in class AbstractCollection<WBSCodeMask>
item
- The specified item.public void copyTo(WBSCodeMask[] array, int arrayIndex)
array
- the specified one-dimensional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.public WBSCodeMask get(int index)
get
in interface List<WBSCodeMask>
get
in class AbstractList<WBSCodeMask>
index
- public final boolean remove(Object item)
remove
in interface Collection<WBSCodeMask>
remove
in interface List<WBSCodeMask>
remove
in class AbstractCollection<WBSCodeMask>
item
- The specified item.public WBSCodeMask remove(int index)
remove
in interface List<WBSCodeMask>
remove
in class AbstractList<WBSCodeMask>
index
- public int size()
size
in interface Collection<WBSCodeMask>
size
in interface List<WBSCodeMask>
size
in class AbstractCollection<WBSCodeMask>
public List<WBSCodeMask> toList()
public void sort(Comparator<? super T> c)
c
-