ExtendedAttributeDefinitionCollection

Inheritance: java.lang.Object, java.util.AbstractCollection, java.util.AbstractList, com.aspose.tasks.AbstractList

public class ExtendedAttributeDefinitionCollection extends AbstractList<ExtendedAttributeDefinition>

Represents a collection of ExtendedAttributeDefinition objects.

Methods

MethodDescription
add(ExtendedAttributeDefinition item)Adds the specified item to this collection.
clear()Removes all items from this collection.
contains(ExtendedAttributeDefinition item)Returns true if the specified item is found in this collection; otherwise, false.
copyTo(ExtendedAttributeDefinition[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.
get(int index)Returns the element at the specified position in this collection.
getById(int id)Returns an extended attribute definition by id
getParentProject()Gets a parent project for the ExtendedAttributeDefinitionCollection instance.
insert(int index, ExtendedAttributeDefinition item)Inserts the specified item at the specified index.
iterator()Returns an iterator over elements from this collection.
remove(int index)Removes the element at the specified position in this collection and returns the element that was removed from the collection.
remove(Object item)Removes the first occurrence of a specific object from this collection.
set(int index, ExtendedAttributeDefinition value)Sets the element at the specified position in this collection.
size()Gets the number of elements contained in this collection.
toList()Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of the ExtendedAttributeDefinition class.

add(ExtendedAttributeDefinition item)

public final boolean add(ExtendedAttributeDefinition item)

Adds the specified item to this collection.

Parameters:

ParameterTypeDescription
itemExtendedAttributeDefinitionthe specified item to add to this collection.

Returns: boolean - true if the specified item was added successfully; otherwise, false.

clear()

public final void clear()

Removes all items from this collection.

contains(ExtendedAttributeDefinition item)

public final boolean contains(ExtendedAttributeDefinition item)

Returns true if the specified item is found in this collection; otherwise, false.

Parameters:

ParameterTypeDescription
itemExtendedAttributeDefinitionthe specified item to find.

Returns: boolean - true if the specified item is found in this collection; otherwise, false.

copyTo(ExtendedAttributeDefinition[] array, int arrayIndex)

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:

ParameterTypeDescription
arrayExtendedAttributeDefinition[]the specified one-dimensional array to copy elements to
arrayIndexintthe zero-based index of the specified array at which copying begins.

get(int index)

public ExtendedAttributeDefinition get(int index)

Returns the element at the specified position in this collection.

Parameters:

ParameterTypeDescription
indexintspecified position to getInternal element at.

Returns: ExtendedAttributeDefinition - the element at the specified position in this collection.

getById(int id)

public final ExtendedAttributeDefinition getById(int id)

Returns an extended attribute definition by id

Parameters:

ParameterTypeDescription
idintspecified id

Returns: ExtendedAttributeDefinition - ExtendedAttributeDefinition with specified id.

getParentProject()

public final Project getParentProject()

Gets a parent project for the ExtendedAttributeDefinitionCollection instance.

Returns: Project - returns a parent project for this collection.

insert(int index, ExtendedAttributeDefinition item)

public final void insert(int index, ExtendedAttributeDefinition item)

Inserts the specified item at the specified index.

Parameters:

ParameterTypeDescription
indexintthe specified zero-based index at which the item should be inserted.
itemExtendedAttributeDefinitionthe specified item to insert to this collection.

iterator()

public Iterator<ExtendedAttributeDefinition> iterator()

Returns an iterator over elements from this collection.

Returns: java.util.Iterator<com.aspose.tasks.ExtendedAttributeDefinition> - an iterator over elements from this collection.

remove(int index)

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.

Parameters:

ParameterTypeDescription
indexintthe specified position to remove the element at.

Returns: ExtendedAttributeDefinition - the element that was removed from the collection.

remove(Object item)

public final boolean remove(Object item)

Removes the first occurrence of a specific object from this collection.

Parameters:

ParameterTypeDescription
itemjava.lang.Objectthe specified object to remove.

Returns: boolean - true if the specified object was successfully removed from this collection; otherwise, false.

set(int index, ExtendedAttributeDefinition value)

public final ExtendedAttributeDefinition set(int index, ExtendedAttributeDefinition value)

Sets the element at the specified position in this collection.

Parameters:

ParameterTypeDescription
indexintspecified position to set element at.
valueExtendedAttributeDefinitionthe element to set at the specified position in this collection.

Returns: ExtendedAttributeDefinition - ExtendedAttributeDefinition value.

size()

public final int size()

Gets the number of elements contained in this collection.

Returns: int - 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: java.util.List<com.aspose.tasks.ExtendedAttributeDefinition> - List containing instances of the ExtendedAttributeDefinition class.