Package com.aspose.tasks
Class TableCollection
- java.lang.Object
-
- java.util.AbstractCollection<Table>
-
- com.aspose.tasks.TableCollection
-
- All Implemented Interfaces:
Iterable<Table>
,Collection<Table>
public class TableCollection extends AbstractCollection<Table>
Contains a list of
Table
objects. Implements ICollection<Table> interface.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Table item)
Adds the specified item to this collection.void
clear()
Removes all items from this collection.boolean
contains(Table item)
Returns true if the specified item is found in this collection; otherwise, false.void
copyTo(Table[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.Project
getParentProject()
Gets the parent of the Table object.Iterator<Table>
iterator()
boolean
remove(Table item)
Removes the first occurrence of a specific object from this collection.int
size()
Gets the number of elements contained in this collection.List<Table>
toList()
Converts a table collection to a list ofTable
objects.-
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 final boolean add(Table item)
Adds the specified item to this collection.
- Specified by:
add
in interfaceCollection<Table>
- Overrides:
add
in classAbstractCollection<Table>
- Parameters:
item
- the specified item to add to this collection.- Returns:
- true if adding operation was successful and the item is added to the collection.
-
clear
public final void clear()
Removes all items from this collection.
- Specified by:
clear
in interfaceCollection<Table>
- Overrides:
clear
in classAbstractCollection<Table>
-
contains
public final boolean contains(Table item)
Returns true if the specified item is found in this collection; otherwise, false.
- Parameters:
item
- the specified item to find.- Returns:
- true if the specified item is found in this collection; otherwise, false.
-
copyTo
public final void copyTo(Table[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array 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 Table object. Read-only
Project
.- Returns:
- the parent of the Table object.
-
iterator
public Iterator<Table> iterator()
- Specified by:
iterator
in interfaceCollection<Table>
- Specified by:
iterator
in interfaceIterable<Table>
- Specified by:
iterator
in classAbstractCollection<Table>
-
remove
public final boolean remove(Table item)
Removes the first occurrence of a specific object from this collection.
- Parameters:
item
- the specified object to remove.- Returns:
- true if the specified object was successfully removed from this collection; otherwise, false.
-
size
public final int size()
Gets the number of elements contained in this collection.
- Specified by:
size
in interfaceCollection<Table>
- Specified by:
size
in classAbstractCollection<Table>
- Returns:
- the number of elements contained in this collection.
-
-