TableCollection
Inheritance: java.lang.Object, java.util.AbstractCollection
public class TableCollection extends AbstractCollection<Table>
Contains a list of Table objects. Implements ICollection<Table> interface.
Methods
Method | Description |
---|---|
add(Table item) | Adds the specified item to this collection. |
clear() | Removes all items from this collection. |
contains(Table item) | Returns true if the specified item is found in this collection; otherwise, false. |
copyTo(Table[] array, int arrayIndex) | Copies the elements of this collection to the specified array, starting at the specified array index. |
iterator() | Returns an enumerator for this collection. |
remove(Table item) | Removes the first occurrence of a specific object from this collection. |
size() | Gets the number of elements contained in this collection. |
toList() | Converts a table collection to a list of Table objects. |
add(Table item)
public final boolean add(Table item)
Adds the specified item to this collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | Table | the specified item to add to this collection. |
Returns: boolean - 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.
contains(Table item)
public final boolean contains(Table item)
Returns true if the specified item is found in this collection; otherwise, false.
Parameters:
Parameter | Type | Description |
---|---|---|
item | Table | the specified item to find. |
Returns: boolean - true if the specified item is found in this collection; otherwise, false.
copyTo(Table[] array, int arrayIndex)
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:
Parameter | Type | Description |
---|---|---|
array | Table[] | 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 final Iterator<Table> iterator()
Returns an enumerator for this collection.
Returns: java.util.Iterator<com.aspose.tasks.Table> - an enumerator for this collection.
remove(Table item)
public final boolean remove(Table item)
Removes the first occurrence of a specific object from this collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | Table | the specified object to remove. |
Returns: boolean - 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.
Returns: int - the number of elements contained in this collection.
toList()
public final List<Table> toList()
Converts a table collection to a list of Table objects.
Returns: java.util.List<com.aspose.tasks.Table> - Generic list of Table objects.