Package com.aspose.tasks
Class FilterCollection
- java.lang.Object
-
- java.util.AbstractCollection<Filter>
-
- com.aspose.tasks.FilterCollection
-
- All Implemented Interfaces:
Iterable<Filter>
,Collection<Filter>
public class FilterCollection extends AbstractCollection<Filter>
Contains a list of
Filter
objects. Implements ICollection<Filter> interface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Filter item)
boolean
contains(Filter item)
Returns true if this collection contains the specified item.void
copyTo(Filter[] array, int arrayIndex)
Copies the elements from the specified array to this collection starting from the specified index.Project
getParentProject()
Gets the parent of the Filters object.Iterator<Filter>
iterator()
Returns an iterator over the elements containing in this collection.boolean
remove(Filter item)
Removes the specified item from this collection.int
size()
List<Filter>
toList()
Converts a filter collection to a list ofFilter
objects.-
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Method Detail
-
add
public boolean add(Filter item)
- Specified by:
add
in interfaceCollection<Filter>
- Overrides:
add
in classAbstractCollection<Filter>
-
contains
public final boolean contains(Filter item)
Returns true if this collection contains the specified item.- Parameters:
item
- the specified item.- Returns:
- true if the collection contains the specified item.
-
copyTo
public final void copyTo(Filter[] array, int arrayIndex)
Copies the elements from the specified array to this collection starting from the specified index.- Parameters:
array
- the specified one-dimensional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.
-
getParentProject
public final Project getParentProject()
Gets the parent of the Filters object. Read-only
Project
.- Returns:
- the parent of the Filters object.
-
iterator
public Iterator<Filter> iterator()
Returns an iterator over the elements containing in this collection.- Specified by:
iterator
in interfaceCollection<Filter>
- Specified by:
iterator
in interfaceIterable<Filter>
- Specified by:
iterator
in classAbstractCollection<Filter>
- Returns:
- collection iterator.
-
remove
public final boolean remove(Filter item)
Removes the specified item from this collection.- Parameters:
item
- the specified item.- Returns:
- true if the operation was successful.
-
size
public final int size()
- Specified by:
size
in interfaceCollection<Filter>
- Specified by:
size
in classAbstractCollection<Filter>
-
-