Set<T>

Set<T>

conformsTo UniqueCollection<T> , NonOrderedCollection<T>

Operations

=(object2 : OclAny) : Boolean precedence: EQUALITY

Evaluates to true if self and s contain the same elements.

<>(object2 : OclAny) : Boolean precedence: EQUALITY

-(s : Set<OclAny>) : Set<T> precedence: ADDITIVE

The elements of self, which are not in s.

excluding(object : OclAny) : Set<T>

The set containing all elements of self without object.

flatten<T2>() : Set<T2>

Redefines the Collection operation. If the element type is not a collection type, this results in the same set as self. If the element type is a collection type, the result is the set containing all the elements of all the recursively flattened elements of self.

including(object : T) : Set<T>

The set containing all elements of self plus object.

intersection(s : Set<T>) : Set<T>

The intersection of self and s (i.e., the set of all elements that are in both self and s).

symmetricDifference(s : Set<OclAny>) : Set<T>

The sets containing all the elements that are in self or s, but not in both.

Iterations

reject(i : T | body : Lambda T() : Boolean) : Set<T>

The subset of the source set for which body is false.

select(i : T | body : Lambda T() : Boolean) : Set<T>

The subset of set for which expr is true.