| |||||
Previous Next |
Collection is the abstract supertype of all collections types. Each occurence of an object in a collection is called an element. If an object occurs twice in a collection, there are two elements. A collection cannot have another collection as an element.
Operation Summary | |
Integer | count(OclAny object) The number of times that object occurs in this collection. |
Boolean | excludes(OclAny object) True if object is not an element of this collection. |
Boolean | excludesAll(Collection collection) True if this collection contains none of the elements of collection. |
Boolean | exists(Boolean_Expression expr) True if the expression expr applied on each element in this collection evaluates to true at least one time. |
Boolean | forAll(Boolean_Expression expr) True if the expression expr applied on each element in this collection evaluates to true each time. |
OclAny | getOne Returns an element of this collection. |
Boolean | includes(OclAny object) True if object is an element of collection, false otherwise. |
Boolean | includesAll(Collection collection) True if this collection contains all the elements of collection. |
Boolean | isEmpty True if this collection contains no elements. |
Boolean | isUnique(Boolean_Expression expr) True if the expression expr applied on each element in this collection evaluates to true once. |
Boolean | notEmpty True if this collection contains at least one element. |
Integer | size The number of elements in this collection. |
Sequence | sortedBy(OclAny_Expression expr) Results to a sequence containing all elements in this collection. |
Sequence | sortedBy(OclAny_Expression expr, Boolean desc) Results to a sequence containing all elements in this collection. |
Real | sum The addition of all elements in this collection. |
Operations Detail |
public Integer size
public Boolean includes(OclAny object)
public Boolean excludes(OclAny object)
public Integer count(OclAny object)
public Boolean includesAll(Collection collection)
public Boolean excludesAll(Collection collection)
public Boolean isEmpty
public Boolean notEmpty
public OclAny getOne
public Real sum
public Boolean exists(Boolean_Expression expr)
public Boolean forAll(Boolean_Expression expr)
public Boolean isUnique(Boolean_Expression expr)
public Sequence sortedBy(OclAny_Expression expr)
public Sequence sortedBy(OclAny_Expression expr, Boolean desc)
| |||||
Previous Next |