public class TableCollection extends AbstractCollection<Table>
Contains a list of Table
objects.
Implements ICollection<Table> interface.
Modifier and Type | Method and 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 of
Table objects. |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public final boolean add(Table item)
Adds the specified item to this collection.
add
in interface Collection<Table>
add
in class AbstractCollection<Table>
item
- the specified item to add to this collection.public final void clear()
Removes all items from this collection.
clear
in interface Collection<Table>
clear
in class AbstractCollection<Table>
public final boolean contains(Table item)
Returns true if the specified item is found in this collection; otherwise, false.
item
- the specified item to find.public final void copyTo(Table[] array, int arrayIndex)
Copies the elements of this collection to the specified array, starting at the specified array index.
array
- the specified one-dimensional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.public final Project getParentProject()
Gets the parent of the Table object.
Read-only Project
.
public Iterator<Table> iterator()
iterator
in interface Iterable<Table>
iterator
in interface Collection<Table>
iterator
in class AbstractCollection<Table>
public final boolean remove(Table item)
Removes the first occurrence of a specific object from this collection.
item
- the specified object to remove.public final int size()
Gets the number of elements contained in this collection.
size
in interface Collection<Table>
size
in class AbstractCollection<Table>