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
Filterobjects. Implements ICollection<Filter> interface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Filter item)booleancontains(Filter item)Returns true if this collection contains the specified item.voidcopyTo(Filter[] array, int arrayIndex)Copies the elements from the specified array to this collection starting from the specified index.ProjectgetParentProject()Gets the parent of the Filters object.Iterator<Filter>iterator()Returns an iterator over the elements containing in this collection.booleanremove(Filter item)Removes the specified item from this collection.intsize()List<Filter>toList()Converts a filter collection to a list ofFilterobjects.-
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:
addin interfaceCollection<Filter>- Overrides:
addin 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:
iteratorin interfaceCollection<Filter>- Specified by:
iteratorin interfaceIterable<Filter>- Specified by:
iteratorin 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:
sizein interfaceCollection<Filter>- Specified by:
sizein classAbstractCollection<Filter>
-
-