@OpenApiAll
public class QueryList
extends java.util.AbstractList<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
implements java.io.Serializable
Constructor and Description |
---|
QueryList()
QueryList constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element e) |
boolean |
addAll(java.util.Collection col)
Add collection to QueryList.
|
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element |
first()
Return the first element from collection.
|
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element |
get(int index) |
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element |
last()
Return the last element from collection.
|
int |
size() |
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element |
unique()
return the first element from collection (equivalent to
first() . |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element get(int index)
get
in interface java.util.List<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
get
in class java.util.AbstractList<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
public int size()
size
in interface java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
size
in interface java.util.List<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
size
in class java.util.AbstractCollection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
public boolean add(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element e)
add
in interface java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
add
in interface java.util.List<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
add
in class java.util.AbstractList<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
public boolean addAll(java.util.Collection col)
addAll
in interface java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
addAll
in interface java.util.List<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
addAll
in class java.util.AbstractCollection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element>
col
- collectionpublic com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element first()
public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element last()
public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element unique()
first()
.