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
Method | Description |
---|---|
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() | Gets the number of elements contained in this collection. |
toList() | Converts a filter collection to a list of Filter objects. |
add(Filter item)
public boolean add(Filter item)
Parameters:
Parameter | Type | Description |
---|---|---|
item | Filter |
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:
Parameter | Type | Description |
---|---|---|
item | Filter | the 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:
Parameter | Type | Description |
---|---|---|
array | Filter[] | the specified one-dimensional array to copy elements to |
arrayIndex | int | the 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:
Parameter | Type | Description |
---|---|---|
item | Filter | the specified item. |
Returns: boolean - true if the operation was successful.
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 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.