public class OutlineMaskCollection extends AbstractList<T>
Represents a collection of OutlineMask
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(OutlineMask item)
Adds the specified item to this collection.
|
OutlineMask |
get(int index)
Returns the element at the specified position in this collection.
|
Iterator<OutlineMask> |
iterator()
Returns an iterator over elements from this collection.
|
OutlineMask |
remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from
the collection.
|
int |
size()
Gets the number of elements contained in this collection.
|
void |
sort(Comparator<? super T> c) |
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public boolean add(OutlineMask item)
add
in interface Collection<OutlineMask>
add
in interface List<OutlineMask>
add
in class AbstractList<OutlineMask>
item
- the specified item to add to the collection.public OutlineMask get(int index)
get
in interface List<OutlineMask>
get
in class AbstractList<OutlineMask>
index
- specified position to getInternal element at.public Iterator<OutlineMask> iterator()
iterator
in interface Iterable<OutlineMask>
iterator
in interface Collection<OutlineMask>
iterator
in interface List<OutlineMask>
iterator
in class AbstractList<OutlineMask>
public OutlineMask remove(int index)
remove
in interface List<OutlineMask>
remove
in class AbstractList<OutlineMask>
index
- the specified position to remove the element at.public final int size()
Gets the number of elements contained in this collection.
size
in interface Collection<OutlineMask>
size
in interface List<OutlineMask>
size
in class AbstractCollection<OutlineMask>
public void sort(Comparator<? super T> c)
c
-