Class ExtendedAttributeDefinitionCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.ExtendedAttributeDefinitionCollection
-
- All Implemented Interfaces:
Iterable<ExtendedAttributeDefinition>,Collection<ExtendedAttributeDefinition>,List<ExtendedAttributeDefinition>
public class ExtendedAttributeDefinitionCollection extends AbstractList<T>
Represents a collection of
ExtendedAttributeDefinitionobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(ExtendedAttributeDefinition item)Adds the specified item to this collection.voidclear()Removes all items from this collection.booleancontains(ExtendedAttributeDefinition item)Returns true if the specified item is found in this collection; otherwise, false.voidcopyTo(ExtendedAttributeDefinition[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.ExtendedAttributeDefinitionget(int index)Returns the element at the specified position in this collection.ExtendedAttributeDefinitiongetById(int id)Returns an extended attribute definition by idProjectgetParentProject()Gets a parent project for theExtendedAttributeDefinitionCollectioninstance.voidinsert(int index, ExtendedAttributeDefinition item)Inserts the specified item at the specified index.Iterator<ExtendedAttributeDefinition>iterator()Returns an iterator over elements from this collection.ExtendedAttributeDefinitionremove(int index)Removes the element at the specified position in this collection and returns the element that was removed from the collection.booleanremove(Object item)Removes the first occurrence of a specific object from this collection.ExtendedAttributeDefinitionset(int index, ExtendedAttributeDefinition value)Sets the element at the specified position in this collection.intsize()Gets the number of elements contained in this collection.voidsort(Comparator<? super T> c)List<ExtendedAttributeDefinition>toList()Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of theExtendedAttributeDefinitionclass.-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public final boolean add(ExtendedAttributeDefinition item)
Adds the specified item to this collection.
- Specified by:
addin interfaceCollection<ExtendedAttributeDefinition>- Specified by:
addin interfaceList<ExtendedAttributeDefinition>- Overrides:
addin classAbstractList<ExtendedAttributeDefinition>- Parameters:
item- the specified item to add to this collection.- Returns:
- true if the specified item was added successfully; otherwise, false.
-
clear
public final void clear()
Removes all items from this collection.
- Specified by:
clearin interfaceCollection<ExtendedAttributeDefinition>- Specified by:
clearin interfaceList<ExtendedAttributeDefinition>- Overrides:
clearin classAbstractList<ExtendedAttributeDefinition>
-
contains
public final boolean contains(ExtendedAttributeDefinition item)
Returns true if the specified item is found in this collection; otherwise, false.
- Parameters:
item- the specified item to find.- Returns:
- true if the specified item is found in this collection; otherwise, false.
-
copyTo
public final void copyTo(ExtendedAttributeDefinition[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
- Parameters:
array- the specified one-dimensional array to copy elements toarrayIndex- the zero-based index of the specified array at which copying begins.
-
getById
public final ExtendedAttributeDefinition getById(int id)
Returns an extended attribute definition by id
- Parameters:
id- specified id- Returns:
- ExtendedAttributeDefinition with specified id.
-
getParentProject
public final Project getParentProject()
Gets a parent project for the
ExtendedAttributeDefinitionCollectioninstance.- Returns:
- returns a parent project for this collection.
-
insert
public final void insert(int index, ExtendedAttributeDefinition item)Inserts the specified item at the specified index.
- Parameters:
index- the specified zero-based index at which the item should be inserted.item- the specified item to insert to this collection.
-
iterator
public Iterator<ExtendedAttributeDefinition> iterator()
Returns an iterator over elements from this collection.- Specified by:
iteratorin interfaceCollection<ExtendedAttributeDefinition>- Specified by:
iteratorin interfaceIterable<ExtendedAttributeDefinition>- Specified by:
iteratorin interfaceList<ExtendedAttributeDefinition>- Overrides:
iteratorin classAbstractList<ExtendedAttributeDefinition>- Returns:
- an iterator over elements from this collection.
-
remove
public final boolean remove(Object item)
Removes the first occurrence of a specific object from this collection.
- Specified by:
removein interfaceCollection<ExtendedAttributeDefinition>- Specified by:
removein interfaceList<ExtendedAttributeDefinition>- Overrides:
removein classAbstractCollection<ExtendedAttributeDefinition>- Parameters:
item- the specified object to remove.- Returns:
- true if the specified object was successfully removed from this collection; otherwise, false.
-
remove
public final ExtendedAttributeDefinition remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from the collection.- Specified by:
removein interfaceList<ExtendedAttributeDefinition>- Overrides:
removein classAbstractList<ExtendedAttributeDefinition>- Parameters:
index- the specified position to remove the element at.- Returns:
- the element that was removed from the collection.
-
set
public final ExtendedAttributeDefinition set(int index, ExtendedAttributeDefinition value)
Sets the element at the specified position in this collection.- Specified by:
setin interfaceList<ExtendedAttributeDefinition>- Overrides:
setin classAbstractList<ExtendedAttributeDefinition>- Parameters:
index- specified position to set element at.value- the element to set at the specified position in this collection.- Returns:
ExtendedAttributeDefinitionvalue.
-
size
public final int size()
Gets the number of elements contained in this collection.
- Specified by:
sizein interfaceCollection<ExtendedAttributeDefinition>- Specified by:
sizein interfaceList<ExtendedAttributeDefinition>- Specified by:
sizein classAbstractCollection<ExtendedAttributeDefinition>- Returns:
- the number of elements contained in this collection.
-
toList
public final List<ExtendedAttributeDefinition> toList()
Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of the
ExtendedAttributeDefinitionclass.- Returns:
- List containing instances of the
ExtendedAttributeDefinitionclass.
-
get
public ExtendedAttributeDefinition get(int index)
Returns the element at the specified position in this collection.- Specified by:
getin interfaceList<ExtendedAttributeDefinition>- Specified by:
getin classAbstractList<ExtendedAttributeDefinition>- Parameters:
index- specified position to getInternal element at.- Returns:
- the element at the specified position in this collection.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-