OutlineCodeDefinitionCollection

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

public class OutlineCodeDefinitionCollection extends AbstractList<OutlineCodeDefinition>

Represents a collection of OutlineCodeDefinition objects.

Methods

MethodDescription
add(OutlineCodeDefinition item)Adds the specified item to this collection.
get(int index)Returns the element at the specified position in this collection.
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.
size()Gets the number of elements contained in this collection.
sort(Comparator<? super OutlineCodeDefinition> c){@inheritDoc}
toList()Converts this OutlineCodeDefinitionCollection object to a list of OutlineCodeDefinition objects.

add(OutlineCodeDefinition item)

public boolean add(OutlineCodeDefinition item)

Adds the specified item to this collection.

Parameters:

ParameterTypeDescription
itemOutlineCodeDefinitionthe specified item to add to the collection.

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

get(int index)

public OutlineCodeDefinition get(int index)

Returns the element at the specified position in this collection.

Parameters:

ParameterTypeDescription
indexintspecified position to getInternal element at.

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

iterator()

public Iterator<OutlineCodeDefinition> iterator()

Returns an iterator over elements from this collection.

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

remove(int index)

public OutlineCodeDefinition 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: OutlineCodeDefinition - the element that was removed from the collection.

size()

public int size()

Gets the number of elements contained in this collection.

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

sort(Comparator<? super OutlineCodeDefinition> c)

public void sort(Comparator<? super OutlineCodeDefinition> c)

Parameters:

ParameterTypeDescription
cjava.util.Comparator<? super com.aspose.tasks.OutlineCodeDefinition>{@inheritDoc}

toList()

public final List<OutlineCodeDefinition> toList()

Converts this OutlineCodeDefinitionCollection object to a list of OutlineCodeDefinition objects.

Returns: java.util.List<com.aspose.tasks.OutlineCodeDefinition> - List of OutlineCodeDefinition objects.