public class OutlineCodeDefinitionCollection extends AbstractList<T>
Represents a collection of OutlineCodeDefinition
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(OutlineCodeDefinition item)
Adds the specified item to this collection.
|
OutlineCodeDefinition |
get(int index)
Returns the element at the specified position in this collection.
|
Iterator<OutlineCodeDefinition> |
iterator()
Returns an iterator over elements from this collection.
|
OutlineCodeDefinition |
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 OutlineCodeDefinition> c) |
List<OutlineCodeDefinition> |
toList()
Converts this OutlineCodeDefinitionCollection object to a list of
OutlineCodeDefinition objects. |
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(OutlineCodeDefinition item)
add
in interface Collection<OutlineCodeDefinition>
add
in interface List<OutlineCodeDefinition>
add
in class AbstractList<OutlineCodeDefinition>
item
- the specified item to add to the collection.public OutlineCodeDefinition get(int index)
get
in interface List<OutlineCodeDefinition>
get
in class AbstractList<OutlineCodeDefinition>
index
- specified position to getInternal element at.public Iterator<OutlineCodeDefinition> iterator()
iterator
in interface Iterable<OutlineCodeDefinition>
iterator
in interface Collection<OutlineCodeDefinition>
iterator
in interface List<OutlineCodeDefinition>
iterator
in class AbstractList<OutlineCodeDefinition>
public OutlineCodeDefinition remove(int index)
remove
in interface List<OutlineCodeDefinition>
remove
in class AbstractList<OutlineCodeDefinition>
index
- the specified position to remove the element at.public int size()
Gets the number of elements contained in this collection.
size
in interface Collection<OutlineCodeDefinition>
size
in interface List<OutlineCodeDefinition>
size
in class AbstractCollection<OutlineCodeDefinition>
public void sort(Comparator<? super OutlineCodeDefinition> c)
sort
in interface List<OutlineCodeDefinition>
c
- public final List<OutlineCodeDefinition> toList()
Converts this OutlineCodeDefinitionCollection object to a list of OutlineCodeDefinition
objects.
OutlineCodeDefinition
objects.