FilterCollection

Inheritance: java.lang.Object, java.util.AbstractCollection

public class FilterCollection extends AbstractCollection<Filter>

Contains a list of Filter objects. Implements ICollection<Filter> interface.

Methods

MethodDescription
add(Filter item)
clear()Removes all of the elements from this collection (optional operation).
contains(Filter item)Returns true if this collection contains the specified item.
copyTo(Filter[] array, int arrayIndex)Copies the elements from the specified array to this collection starting from the specified index.
iterator()Returns an iterator over the elements containing in this collection.
remove(Filter item)Removes the specified item from this collection.
size()
toList()Converts a filter collection to a list of Filter objects.

add(Filter item)

public boolean add(Filter item)

Parameters:

ParameterTypeDescription
itemFilter

Returns: boolean

clear()

public void clear()

Removes all of the elements from this collection (optional operation).

contains(Filter item)

public final boolean contains(Filter item)

Returns true if this collection contains the specified item.

Parameters:

ParameterTypeDescription
itemFilterthe specified item.

Returns: boolean - true if the collection contains the specified item.

copyTo(Filter[] array, int arrayIndex)

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

Copies the elements from the specified array to this collection starting from the specified index.

Parameters:

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

iterator()

public Iterator<Filter> iterator()

Returns an iterator over the elements containing in this collection.

Returns: java.util.Iterator<com.aspose.tasks.Filter> - collection iterator.

remove(Filter item)

public final boolean remove(Filter item)

Removes the specified item from this collection.

Parameters:

ParameterTypeDescription
itemFilterthe specified item.

Returns: boolean - true if the operation was successful.

size()

public final int size()

Returns: int

toList()

public List<Filter> toList()

Converts a filter collection to a list of Filter objects.

Returns: java.util.List<com.aspose.tasks.Filter> - Generic list of Filter objects.