libperun

Class std.cont.Set

Synopsis

public abstract class Set< T > extends Container< T >

Represents an abstract set.

This is a container where each element can appear only once, and it is unordered.

Fields

Constructors

Methods

public abstract void add(T element);

Add the specified element to the set.

If the element is already in the set, does nothing.

public abstract void remove(T element);

Remove the specified element from the set.

If the element is not in the set, does nothing.

public abstract bool contains(T element);

Returns true if this set contains the specified element.