public class ViewCollection extends AbstractCollection<View>
Contains a list of View
objects.
Extends AbstractCollection<View>
class.
Modifier and Type | Method and Description |
---|---|
boolean |
add(View item)
Adds the specified item to the end of the collection.
|
void |
clear()
Removes all of the items in the collection.
|
boolean |
contains(View item)
Return true if this collection contains the specified item.
|
void |
copyTo(View[] array,
int arrayIndex)
Copies all of the elements in the specified collection into the specified array at the specified index.
|
Project |
getParentProject()
Gets the parent of the Views object.
|
Iterator<View> |
iterator()
Returns an iterator over the elements contained in this collection.
|
boolean |
remove(View item)
Removes the specified item.
|
int |
size()
Returns the number of elements in this collection.
|
List<View> |
toList()
Converts a view collection to a list of
View 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 boolean add(View item)
add
in interface Collection<View>
add
in class AbstractCollection<View>
item
- View
item to be added.public void clear()
clear
in interface Collection<View>
clear
in class AbstractCollection<View>
public boolean contains(View item)
item
- the specified view.public void copyTo(View[] 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 Project getParentProject()
Gets the parent of the Views object.
Read-only Project
.
public Iterator<View> iterator()
iterator
in interface Iterable<View>
iterator
in interface Collection<View>
iterator
in class AbstractCollection<View>
public boolean remove(View item)
item
- the item to be removed.public int size()
size
in interface Collection<View>
size
in class AbstractCollection<View>
Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.