public class ExtendedAttributeDefinitionCollection extends AbstractList<T>
Represents a collection of ExtendedAttributeDefinition
objects.
Modifier and Type | Method and Description |
---|---|
boolean |
add(ExtendedAttributeDefinition item)
Adds the specified item to this collection.
|
void |
clear()
Removes all items from this collection.
|
boolean |
contains(ExtendedAttributeDefinition item)
Returns true if the specified item is found in this collection; otherwise, false.
|
void |
copyTo(ExtendedAttributeDefinition[] array,
int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
|
ExtendedAttributeDefinition |
get(int index)
Returns the element at the specified position in this collection.
|
ExtendedAttributeDefinition |
getById(int id)
Returns an extended attribute definition by id
|
Project |
getParentProject()
Gets a parent project for the
ExtendedAttributeDefinitionCollection instance. |
void |
insert(int index,
ExtendedAttributeDefinition item)
Inserts the specified item at the specified index.
|
Iterator<ExtendedAttributeDefinition> |
iterator()
Returns an iterator over elements from this collection.
|
ExtendedAttributeDefinition |
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 first occurrence of a specific object from this collection.
|
ExtendedAttributeDefinition |
set(int index,
ExtendedAttributeDefinition value)
Sets the element at the specified position in this collection.
|
int |
size()
Returns the number of elements in this collection.
|
void |
sort(Comparator<? super T> c) |
List<ExtendedAttributeDefinition> |
toList()
Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of the
ExtendedAttributeDefinition class. |
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(ExtendedAttributeDefinition item)
Adds the specified item to this collection.
add
in interface Collection<ExtendedAttributeDefinition>
add
in interface List<ExtendedAttributeDefinition>
add
in class AbstractList<ExtendedAttributeDefinition>
item
- the specified item to add to this collection.public final void clear()
Removes all items from this collection.
clear
in interface Collection<ExtendedAttributeDefinition>
clear
in interface List<ExtendedAttributeDefinition>
clear
in class AbstractList<ExtendedAttributeDefinition>
public final boolean contains(ExtendedAttributeDefinition item)
Returns true if the specified item is found in this collection; otherwise, false.
item
- the specified item to find.public final void copyTo(ExtendedAttributeDefinition[] 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 ExtendedAttributeDefinition get(int index)
get
in interface List<ExtendedAttributeDefinition>
get
in class AbstractList<ExtendedAttributeDefinition>
index
- specified position to getInternal element at.public final ExtendedAttributeDefinition getById(int id)
Returns an extended attribute definition by id
id
- specified idpublic final Project getParentProject()
Gets a parent project for the ExtendedAttributeDefinitionCollection
instance.
public final void insert(int index, ExtendedAttributeDefinition 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<ExtendedAttributeDefinition> iterator()
iterator
in interface Iterable<ExtendedAttributeDefinition>
iterator
in interface Collection<ExtendedAttributeDefinition>
iterator
in interface List<ExtendedAttributeDefinition>
iterator
in class AbstractList<ExtendedAttributeDefinition>
public final boolean remove(Object item)
Removes the first occurrence of a specific object from this collection.
remove
in interface Collection<ExtendedAttributeDefinition>
remove
in interface List<ExtendedAttributeDefinition>
remove
in class AbstractCollection<ExtendedAttributeDefinition>
item
- the specified object to remove.public final ExtendedAttributeDefinition remove(int index)
remove
in interface List<ExtendedAttributeDefinition>
remove
in class AbstractList<ExtendedAttributeDefinition>
index
- the specified position to remove the element at.public final ExtendedAttributeDefinition set(int index, ExtendedAttributeDefinition value)
set
in interface List<ExtendedAttributeDefinition>
set
in class AbstractList<ExtendedAttributeDefinition>
index
- specified position to set element at.value
- the element to set at the specified position in this collection.ExtendedAttributeDefinition
value.public final int size()
size
in interface Collection<ExtendedAttributeDefinition>
size
in interface List<ExtendedAttributeDefinition>
size
in class AbstractCollection<ExtendedAttributeDefinition>
public final List<ExtendedAttributeDefinition> toList()
Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of the ExtendedAttributeDefinition
class.
ExtendedAttributeDefinition
class.public void sort(Comparator<? super T> c)
c
-