public class GroupCriterionCollection extends AbstractList<GroupCriterion>
GroupCriterion
objects.
Implements ICollection<GroupCriterion> interface.Modifier and Type | Method and Description |
---|---|
boolean |
add(GroupCriterion item)
Adds the specified item to this collection.
|
void |
add(int index,
GroupCriterion element)
Inserts the specified element at the specified position in this list.
|
GroupCriterion |
get(int index)
(@inheritDoc}
|
Group |
getParentGroup()
Gets the parent of the GroupCriterion object.
|
GroupCriterion |
remove(int index)
Removes the element at the specified position in this collection and returns the element that was removed from
the collection.
|
boolean |
remove(Object item)
Removes a single instance of the specified element from this collection, if it is present.
|
int |
size()
Returns the number of elements in this collection.
|
List<GroupCriterion> |
toList()
Converts a GroupCriterion collection to a list of
GroupCriterion objects. |
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, set, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public boolean add(GroupCriterion item)
add
in interface Collection<GroupCriterion>
add
in interface List<GroupCriterion>
add
in class AbstractList<GroupCriterion>
item
- the specified item to add to the collection.public void add(int index, GroupCriterion element)
add
in interface List<GroupCriterion>
add
in class AbstractList<GroupCriterion>
index
- element
- public GroupCriterion get(int index)
get
in interface List<GroupCriterion>
get
in class AbstractList<GroupCriterion>
index
- public Group getParentGroup()
public GroupCriterion remove(int index)
remove
in interface List<GroupCriterion>
remove
in class AbstractList<GroupCriterion>
index
- the specified position to remove the element at.public boolean remove(Object item)
remove
in interface Collection<GroupCriterion>
remove
in interface List<GroupCriterion>
remove
in class AbstractCollection<GroupCriterion>
item
- element to be removed from this collection, if present.public int size()
size
in interface Collection<GroupCriterion>
size
in interface List<GroupCriterion>
size
in class AbstractCollection<GroupCriterion>
public List<GroupCriterion> toList()
Converts a GroupCriterion collection to a list of GroupCriterion
objects.
GroupCriterion
objects.