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
ExtendedAttributeDefinition
objects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 idProject
getParentProject()
Gets a parent project for theExtendedAttributeDefinitionCollection
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()
Gets the number of elements contained in this collection.void
sort(Comparator<? super T> c)
List<ExtendedAttributeDefinition>
toList()
Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of theExtendedAttributeDefinition
class.-
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:
add
in interfaceCollection<ExtendedAttributeDefinition>
- Specified by:
add
in interfaceList<ExtendedAttributeDefinition>
- Overrides:
add
in 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:
clear
in interfaceCollection<ExtendedAttributeDefinition>
- Specified by:
clear
in interfaceList<ExtendedAttributeDefinition>
- Overrides:
clear
in 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
ExtendedAttributeDefinitionCollection
instance.- 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:
iterator
in interfaceCollection<ExtendedAttributeDefinition>
- Specified by:
iterator
in interfaceIterable<ExtendedAttributeDefinition>
- Specified by:
iterator
in interfaceList<ExtendedAttributeDefinition>
- Overrides:
iterator
in 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:
remove
in interfaceCollection<ExtendedAttributeDefinition>
- Specified by:
remove
in interfaceList<ExtendedAttributeDefinition>
- Overrides:
remove
in 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:
remove
in interfaceList<ExtendedAttributeDefinition>
- Overrides:
remove
in 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:
set
in interfaceList<ExtendedAttributeDefinition>
- Overrides:
set
in classAbstractList<ExtendedAttributeDefinition>
- Parameters:
index
- specified position to set element at.value
- the element to set at the specified position in this collection.- Returns:
ExtendedAttributeDefinition
value.
-
size
public final int size()
Gets the number of elements contained in this collection.
- Specified by:
size
in interfaceCollection<ExtendedAttributeDefinition>
- Specified by:
size
in interfaceList<ExtendedAttributeDefinition>
- Specified by:
size
in 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
ExtendedAttributeDefinition
class.- Returns:
- List containing instances of the
ExtendedAttributeDefinition
class.
-
get
public ExtendedAttributeDefinition get(int index)
Returns the element at the specified position in this collection.- Specified by:
get
in interfaceList<ExtendedAttributeDefinition>
- Specified by:
get
in 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
-
-
-