Type Hierarchy:
Satisfied Interfaces: Category, Cloneable<Set<Element>>, Collection<Element>, Iterable<Element,Null>, Set<Nothing>

A Set with no elements.

Attributes
cloneSource Code
shared actual Set<Nothing> clone

Obtain a clone of this object. For a mutable object, this should return a copy of the object. For an immutable object, it is acceptable to return the object itself.

Refined declaration: clone
emptySource Code
shared actual Boolean empty

Determines if the iterable object is empty, that is to say, if the iterator returns no elements.

Refined declaration: empty
sizeSource Code
shared actual Integer size= 0

The number of elements returned by the iterator of this iterable object, if the iterator terminates. In the case of an iterable whose elements are not countable, this operation never terminates.

Refined declaration: size
Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Cloneable<Clone>
Attributes inherited from: Collection<Element>
Attributes inherited from: Iterable<Element,Absent>
Attributes inherited from: Set<Element>
Methods
anySource Code
shared actual Boolean any(Boolean selecting(Nothing element))

Return true if at least one element satisfies the predicate function.

Refined declaration: any
bySource Code
shared actual Set<Nothing> by(Integer step)

Produce an Iterable containing every stepth element of this iterable object. If the step size is 1, the Iterable contains the same elements as this iterable object. The step size must be greater than zero. The expression

(0..10).by(3)

results in an iterable object with the elements 0, 3, 6, and 9 in that order.

Refined declaration: by
collectSource Code
shared actual [] collect<Result>(Result collecting(Nothing element))

A sequence containing the results of applying the given mapping to the elements of this container. An eager counterpart to map().

Refined declaration: collect
complementSource Code
shared actual Set<Nothing> complement<Other>(Set<Other> set)
given Other satisfies Object

Returns a new Set containing all the elements in this Set that are not contained in the given Set.

Refined declaration: complement
containsSource Code
shared actual Boolean contains(Object element)

Determines if the given value belongs to this Category, that is, if it is an element of this Category.

For most Categorys, if x==y, then category.contains(x) evaluates to the same value as category.contains(y). However, it is possible to form a Category consistent with some other equivalence relation, for example ===. Therefore implementations of contains() which do not satisfy this relationship are tolerated.

Refined declaration: contains
containsAnySource Code

Determines if any one of the given values belongs to this Category

Refined declaration: containsAny
containsEverySource Code

Determines if every one of the given values belongs to this Category.

Refined declaration: containsEvery
countSource Code
shared actual Integer count(Boolean selecting(Nothing element))

Return the number of elements in this Iterable that satisfy the predicate function.

Refined declaration: count
everySource Code
shared actual Boolean every(Boolean selecting(Nothing element))

Return true if all elements satisfy the predicate function.

Refined declaration: every
exclusiveUnionSource Code
shared actual Set<Other> exclusiveUnion<Other>(Set<Other> set)
given Other satisfies Object

Returns a new Set containing only the elements contained in either this Set or the given Set, but no element contained in both sets.

Refined declaration: exclusiveUnion
filterSource Code
shared actual Set<Nothing> filter(Boolean selecting(Nothing element))

An Iterable containing the elements of this container that satisfy the given predicate.

Refined declaration: filter
findSource Code
shared actual Null find(Boolean selecting(Nothing element))

The first element which satisfies the given predicate, if any, or null otherwise.

Refined declaration: find
foldSource Code
shared actual Result fold<Result>(Result initial, Result accumulating(Result partial, Nothing element))

The result of applying the accumulating function to each element of this container in turn.

Refined declaration: fold
intersectionSource Code
shared actual Set<Nothing> intersection<Other>(Set<Other> set)
given Other satisfies Object

Returns a new Set containing only the elements that are present in both this Set and the given Set.

Refined declaration: intersection
iteratorSource Code
shared actual Iterator<Nothing> iterator()

An iterator for the elements belonging to this container.

Refined declaration: iterator
mapSource Code
shared actual Set<Nothing> map<Result>(Result collecting(Nothing element))

An Iterable containing the results of applying the given mapping to the elements of to this container.

Refined declaration: map
selectSource Code
shared actual [] select(Boolean selecting(Nothing element))

A sequence containing the elements of this container that satisfy the given predicate. An eager counterpart to filter().

Refined declaration: select
skippingSource Code
shared actual Set<Nothing> skipping(Integer skip)

Produce an Iterable containing the elements of this iterable object, after skipping the first skip elements. If this iterable object does not contain more elements than the specified number of elements, the Iterable contains no elements.

Refined declaration: skipping
subsetSource Code
shared actual Boolean subset(Set<Object> set)

Determines if this Set is a subset of the given Set, that is, if the given set contains all of the elements in this set.

Refined declaration: subset
supersetSource Code
shared actual Boolean superset(Set<Object> set)

Determines if this Set is a superset of the specified Set, that is, if this Set contains all of the elements in the specified Set.

Refined declaration: superset
takingSource Code
shared actual Set<Nothing> taking(Integer take)

Produce an Iterable containing the first take elements of this iterable object. If the specified number of elements is larger than the number of elements of this iterable object, the Iterable contains the same elements as this iterable object.

Refined declaration: taking
unionSource Code
shared actual Set<Other> union<Other>(Set<Other> set)
given Other satisfies Object

Returns a new Set containing all the elements of this Set and all the elements of the given Set.

Refined declaration: union
Inherited Methods
Methods inherited from: Object
Methods inherited from: Category
Methods inherited from: Iterable<Element,Absent>
Methods inherited from: Set<Element>