public class ExtendedAttributeCollection extends AbstractList<T>
Represents a collection of ExtendedAttribute
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(ExtendedAttribute item)
Adds the specified item to this collection.
|
void |
clear()
Removes all items from this collection.
|
boolean |
contains(ExtendedAttribute item)
Returns true if the specified item is found in this collection; otherwise, false.
|
void |
copyTo(ExtendedAttribute[] array,
int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
|
ExtendedAttribute |
get(int index)
Gets the element at the specified index.
|
void |
insert(int index,
ExtendedAttribute item)
Inserts the specified item at the specified index.
|
Iterator<ExtendedAttribute> |
iterator()
Returns an iterator over elements from this collection.
|
ExtendedAttribute |
remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from
the collection.
|
boolean |
remove(Object item)
Removes the element from the collection.
|
ExtendedAttribute |
set(int index,
ExtendedAttribute value)
Replaces the element at the specified position in this list with the specified element.
|
int |
size()
Gets the number of elements contained in this collection.
|
void |
sort(Comparator<? super T> c) |
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public final boolean add(ExtendedAttribute item)
Adds the specified item to this collection.
add
in interface Collection<ExtendedAttribute>
add
in interface List<ExtendedAttribute>
add
in class AbstractList<ExtendedAttribute>
item
- the specified item to add to the collection.public final void clear()
Removes all items from this collection.
clear
in interface Collection<ExtendedAttribute>
clear
in interface List<ExtendedAttribute>
clear
in class AbstractList<ExtendedAttribute>
public final boolean contains(ExtendedAttribute item)
Returns true if the specified item is found in this collection; otherwise, false.
item
- the specified item to find.public final void copyTo(ExtendedAttribute[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
array
- the specified one-dimensional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.public final ExtendedAttribute get(int index)
Gets the element at the specified index.
get
in interface List<ExtendedAttribute>
get
in class AbstractList<ExtendedAttribute>
index
- The zero-based index of the element to get or set.public final void insert(int index, ExtendedAttribute item)
Inserts the specified item at the specified index.
index
- the specified zero-based index at which the item should be inserted.item
- the specified item to insert to this collection.public Iterator<ExtendedAttribute> iterator()
iterator
in interface Iterable<ExtendedAttribute>
iterator
in interface Collection<ExtendedAttribute>
iterator
in interface List<ExtendedAttribute>
iterator
in class AbstractList<ExtendedAttribute>
public final boolean remove(Object item)
remove
in interface Collection<ExtendedAttribute>
remove
in interface List<ExtendedAttribute>
remove
in class AbstractCollection<ExtendedAttribute>
item
- the element to remove.public final ExtendedAttribute remove(int index)
remove
in interface List<ExtendedAttribute>
remove
in class AbstractList<ExtendedAttribute>
index
- the specified position to remove the element at.public final ExtendedAttribute set(int index, ExtendedAttribute value)
set
in interface List<ExtendedAttribute>
set
in class AbstractList<ExtendedAttribute>
index
- the specified position to replace element at.value
- the specified element to replace the element at the specified position.public final int size()
Gets the number of elements contained in this collection.
size
in interface Collection<ExtendedAttribute>
size
in interface List<ExtendedAttribute>
size
in class AbstractCollection<ExtendedAttribute>
public void sort(Comparator<? super T> c)
c
-