| |||||
Previous Next |
The Set is the mathematical set. It contains unordered elements without duplicates.
Operation Summary | |
Boolean | =(Set rhs) True if this set and rhs contain the same elements. |
Boolean | <>(Set rhs) True if this set and rhs do not contain the same elements. |
Set | -(Set rhs) The elements of this set which are not in rhs. |
Bag | asBag A bag that contains all the elements from this set. |
Sequence | asSequence A sequence that contains all the elements from this set. |
Set | collect(OclAny_Expression expr) The Bag of elements which results from applying the expr expression to every member of this set. |
Integer | count(OclAny object) 0 if object does not exist in this set, 1 otherwise. |
Set | excluding(OclAny object) The set containing all elements of this set without object. |
Set | including(OclAny object) The set containing all elements of this set plus object. |
Set | intersection(Bag rhs) The intersection of this set and rhs (i.e., the set of all elements that are both in this set and rhs). |
Set | intersection(Set rhs) The intersection of this set and rhs (i.e., the set of all elements that are both in this set and rhs). |
Set | reject(Boolean_Expression expr) The subset of all elements for which applying the expr expression evaluates to false. |
Set | select(Boolean_Expression expr) The subset of all elements for which applying the expr expression evaluates to true. |
Set | symmetricDifference(Set rhs) The set containing all elements that are in this set or rhs, but not in both. |
Bag | union(Bag rhs) The union of this set and rhs. |
Set | union(Set rhs) The union of this set and rhs. |
Operations inherited from type Collection |
excludes, excludesAll, exists, forAll, getOne, includes, includesAll, isEmpty, isUnique, notEmpty, size, sortedBy, sortedBy, sum |
Operations Detail |
public Set union(Set rhs)
public Bag union(Bag rhs)
public Boolean =(Set rhs)
public Boolean <>(Set rhs)
public Set intersection(Set rhs)
public Set intersection(Bag rhs)
public Set -(Set rhs)
public Set including(OclAny object)
public Set excluding(OclAny object)
public Set symmetricDifference(Set rhs)
public Set select(Boolean_Expression expr)
public Set reject(Boolean_Expression expr)
public Set collect(OclAny_Expression expr)
public Integer count(OclAny object)
count
in type Collection
public Sequence asSequence
public Bag asBag
| |||||
Previous Next |