Get started

ImmutableSet

interface ImmutableSet<out E> : Set<E> , ImmutableCollection<E> (source)

A generic immutable unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the immutable set.

Modification operations are supported through the PersistentSet interface.

Implementors of this interface take responsibility to be immutable. Once constructed they must contain the same elements in the same order.

Type Parameters

E

the type of elements contained in the set. The set is covariant on its element type.

Inheritors