Companion

object Companion

Functions

Link copied to clipboard
fun emptyAvailSet(): A_Set

Answer the empty set.

Link copied to clipboard
fun generateSetFrom(tuple: A_Tuple, transformer: (AvailObject) -> A_BasicObject): A_Set

Create an A_Set, then iterate over the A_Tuple, invoking the transformer to produce elements to add. Deduplicate the elements. Answer the resulting set.

fun <A> generateSetFrom(array: Array<A>, transformer: (A) -> A_BasicObject): A_Set

Create an A_Set, then iterate over the array, invoking the transformer to produce elements to add. Deduplicate the elements. Answer the resulting set.

fun generateSetFrom(size: Int, generator: (Int) -> A_BasicObject): A_Set

Create an A_Set, then run the generator the specified number of times to produce elements to add. Deduplicate the elements. Answer the resulting set.

fun generateSetFrom(size: Int, iterator: Iterator<A_BasicObject>): A_Set
fun <A> generateSetFrom(    size: Int,     iterator: Iterator<A>,     transformer: (A) -> A_BasicObject): A_Set

Create an A_Set, then run the iterator the specified number of times to produce elements to add. Deduplicate the elements. Answer the resulting set.

fun <A> generateSetFrom(collection: Collection<A>, transformer: (A) -> A_BasicObject): A_Set

Create an A_Set, then iterate over the collection, invoking the transformer to produce elements to add. Deduplicate the elements. Answer the resulting set.

Link copied to clipboard
fun set(vararg elements: A_BasicObject): A_Set

Create an Avail set with the specified elements. The elements are not made immutable first, nor is the new set.

fun set(vararg errorCodeElements: AvailErrorCode): A_Set

Create an Avail set with the numeric values of the specified error codes. The numeric codes (Avail integers) are not made immutable first, nor is the new set.

Link copied to clipboard
fun setFromCollection(collection: Collection<A_BasicObject>): A_Set

Construct a new set from the specified collection of objects. Neither the elements nor the resultant set are made immutable.

Link copied to clipboard
fun singletonSet(element: A_BasicObject): A_Set

Create an Avail set with exactly one element. The element is not made immutable first, nor is the new set.

Link copied to clipboard
fun toSet(set: A_Set): Set<AvailObject>

Construct a Java Set from the specified Avail A_Set. The elements are not made immutable.

Properties

Link copied to clipboard
val emptySet: A_Set

The empty set.

Link copied to clipboard
val emptySetMethod: CheckedMethod