public class ExtendedAttributeDefinitionCollection extends AbstractList<ExtendedAttributeDefinition>
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 this collection contains the specified item.
|
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()
Returns 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.
|
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.
|
List<ExtendedAttributeDefinition> |
toList()
Converts this ExtendedAttributeDefinitionCollection object to a list of
ExtendedAttributeDefinition objects. |
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public Project getParentProject()
Returns a parent project for the ExtendedAttributeDefinitionCollection
instance.
public boolean add(ExtendedAttributeDefinition item)
add
in interface Collection<ExtendedAttributeDefinition>
add
in interface List<ExtendedAttributeDefinition>
add
in class AbstractList<ExtendedAttributeDefinition>
item
- the specified item to add to the collection.public void clear()
Removes all items from this collection.
clear
in interface Collection<ExtendedAttributeDefinition>
clear
in interface List<ExtendedAttributeDefinition>
clear
in class AbstractList<ExtendedAttributeDefinition>
public boolean contains(ExtendedAttributeDefinition item)
item
- the specified item.public 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 ExtendedAttributeDefinition getById(int id)
Returns an extended attribute definition by id
id
- specified idpublic 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 ExtendedAttributeDefinition remove(int index)
remove
in interface List<ExtendedAttributeDefinition>
remove
in class AbstractList<ExtendedAttributeDefinition>
index
- the specified position to remove the element at.public 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 int size()
size
in interface Collection<ExtendedAttributeDefinition>
size
in interface List<ExtendedAttributeDefinition>
size
in class AbstractCollection<ExtendedAttributeDefinition>
public List<ExtendedAttributeDefinition> toList()
Converts this ExtendedAttributeDefinitionCollection object to a list of ExtendedAttributeDefinition
objects.
ExtendedAttributeDefinition
objects.Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.