public class TableCollection extends AbstractCollection<Table>
Contains a list of Table
objects.
Extends AbstractCollection<Table>
class.
Modifier and Type | Method and Description |
---|---|
boolean |
add(Table item) |
void |
clear()
Removes all of the elements from this collection.
|
boolean |
contains(Table item)
Returns true if this collection contains the specified item.
|
void |
copyTo(Table[] array,
int arrayIndex)
Copies the elements from the specified array to this collection starting from the specified index.
|
Project |
getParentProject()
Gets the parent of the Tables object.
|
Iterator<Table> |
iterator() |
boolean |
remove(Table item)
Removes the first occurrence of a specific object from this collection.
|
int |
size() |
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 Project getParentProject()
Gets the parent of the Tables object.
Read-only Project
.
public boolean add(Table item)
add
in interface Collection<Table>
add
in class AbstractCollection<Table>
public void clear()
clear
in interface Collection<Table>
clear
in class AbstractCollection<Table>
public boolean contains(Table item)
item
- the specified item.public void copyTo(Table[] array, int arrayIndex)
array
- the specified one-dimensional array to copy elements toarrayIndex
- the zero-based index of the specified array at which copying begins.public Iterator<Table> iterator()
iterator
in interface Iterable<Table>
iterator
in interface Collection<Table>
iterator
in class AbstractCollection<Table>
public boolean remove(Table item)
Removes the first occurrence of a specific object from this collection.
item
- the specified object to remove.public int size()
size
in interface Collection<Table>
size
in class AbstractCollection<Table>