ExtendedAttributeCollection

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

public class ExtendedAttributeCollection extends AbstractList<ExtendedAttribute>

Represents a collection of ExtendedAttribute objects.

Methods

MethodDescription
add(ExtendedAttribute item)Adds the specified item to this collection.
clear()Removes all items from this collection.
contains(ExtendedAttribute item)Returns true if the specified item is found in this collection; otherwise, false.
copyTo(ExtendedAttribute[] array, int arrayIndex)Copies the elements of this collection to the specified array, starting at the specified array index.
get(int index)Gets the element at the specified index.
indexOf(ExtendedAttribute item)Determines the index of the specified item in this collection.
insert(int index, ExtendedAttribute item)Inserts the specified item at the specified index.
iterator()Returns an iterator over elements from this collection.
remove(int index)Removes an item at the specified index.
remove(Object item)Removes the element from the collection.
set(int index, ExtendedAttribute value)Replaces the element at the specified position in this list with the specified element.
size()Gets the number of elements contained in this collection.

add(ExtendedAttribute item)

public final boolean add(ExtendedAttribute item)

Adds the specified item to this collection.

Parameters:

ParameterTypeDescription
itemExtendedAttributethe 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(ExtendedAttribute item)

public final boolean contains(ExtendedAttribute item)

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

Parameters:

ParameterTypeDescription
itemExtendedAttributethe specified item to find.

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

copyTo(ExtendedAttribute[] array, int arrayIndex)

public final void copyTo(ExtendedAttribute[] array, int arrayIndex)

Copies the elements of this collection to the specified array, starting at the specified array index.

Parameters:

ParameterTypeDescription
arrayExtendedAttribute[]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 final ExtendedAttribute get(int index)

Gets the element at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index of the element to get or set.

Returns: ExtendedAttribute - the element at the specified index.

indexOf(ExtendedAttribute item)

public final int indexOf(ExtendedAttribute item)

Determines the index of the specified item in this collection.

Parameters:

ParameterTypeDescription
itemExtendedAttributethe specified item to locate in this collection.

Returns: int - the index of the specified item if found; otherwise, -1.

insert(int index, ExtendedAttribute item)

public final void insert(int index, ExtendedAttribute item)

Inserts the specified item at the specified index.

Parameters:

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

iterator()

public Iterator<ExtendedAttribute> iterator()

Returns an iterator over elements from this collection.

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

remove(int index)

public final ExtendedAttribute remove(int index)

Removes an item at the specified index.

Parameters:

ParameterTypeDescription
indexintthe specified zero-based index to remove an item at.

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

remove(Object item)

public final boolean remove(Object item)

Removes the element from the collection.

Parameters:

ParameterTypeDescription
itemjava.lang.Objectthe element to remove.

Returns: boolean - true if element was removed from the collection; otherwise false.

set(int index, ExtendedAttribute value)

public final ExtendedAttribute set(int index, ExtendedAttribute value)

Replaces the element at the specified position in this list with the specified element.

Parameters:

ParameterTypeDescription
indexintthe specified position to replace element at.
valueExtendedAttributethe specified element to replace the element at the specified position.

Returns: ExtendedAttribute - the element replaced by the specified element at the specified position.

size()

public final int size()

Gets the number of elements contained in this collection.

Returns: int - the number of elements contained in this collection.