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)voidclear()Removes all of the elements from this collection (optional operation).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.Iterator<Filter>iterator()Returns an iterator over the elements containing in this collection.booleanremove(Filter item)Removes the specified item from this collection.intsize()Gets the number of elements contained in this collection.List<Filter>toList()Converts a filter collection to a list ofFilterobjects.-
Methods inherited from class java.util.AbstractCollection
addAll, 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>
-
clear
public void clear()
Removes all of the elements from this collection (optional operation).- Specified by:
clearin interfaceCollection<Filter>- Overrides:
clearin 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.
-
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()
Gets the number of elements contained in this collection.
- Specified by:
sizein interfaceCollection<Filter>- Specified by:
sizein classAbstractCollection<Filter>- Returns:
- the number of elements contained in this collection.
-
-