ScatterSetKt

Added in 1.4.0

public final class ScatterSetKt


Summary

Public methods

static final @NonNull ScatterSet<@NonNull E>
<E extends Object> emptyScatterSet()

Returns an empty, read-only ScatterSet.

static final @NonNull MutableScatterSet<@NonNull E>
<E extends Object> mutableScatterSetOf()

Returns a new MutableScatterSet.

static final @NonNull MutableScatterSet<@NonNull E>
<E extends Object> mutableScatterSetOf(@NonNull E element1)

Returns a new MutableScatterSet with only element1 in it.

static final @NonNull MutableScatterSet<@NonNull E>
<E extends Object> mutableScatterSetOf(@NonNull E elements)

Returns a new MutableScatterSet with the specified contents.

static final @NonNull MutableScatterSet<@NonNull E>
<E extends Object> mutableScatterSetOf(@NonNull E element1, @NonNull E element2)

Returns a new MutableScatterSet with only element1 and element2 in it.

static final @NonNull MutableScatterSet<@NonNull E>
<E extends Object> mutableScatterSetOf(
    @NonNull E element1,
    @NonNull E element2,
    @NonNull E element3
)

Returns a new MutableScatterSet with only element1, element2, and element3 in it.

static final @NonNull ScatterSet<@NonNull E>
<E extends Object> scatterSetOf()

Returns an empty, read-only ScatterSet.

static final @NonNull ScatterSet<@NonNull E>
<E extends Object> scatterSetOf(@NonNull E element1)

Returns a new read-only ScatterSet with only element1 in it.

static final @NonNull ScatterSet<@NonNull E>
<E extends Object> scatterSetOf(@NonNull E elements)

Returns a new read-only ScatterSet with only elements in it.

static final @NonNull ScatterSet<@NonNull E>
<E extends Object> scatterSetOf(@NonNull E element1, @NonNull E element2)

Returns a new read-only ScatterSet with only element1 and element2 in it.

static final @NonNull ScatterSet<@NonNull E>
<E extends Object> scatterSetOf(
    @NonNull E element1,
    @NonNull E element2,
    @NonNull E element3
)

Returns a new read-only ScatterSet with only element1, element2, and element3 in it.

Public methods

emptyScatterSet

public static final @NonNull ScatterSet<@NonNull E> <E extends Object> emptyScatterSet()

Returns an empty, read-only ScatterSet.

mutableScatterSetOf

public static final @NonNull MutableScatterSet<@NonNull E> <E extends Object> mutableScatterSetOf()

Returns a new MutableScatterSet.

mutableScatterSetOf

public static final @NonNull MutableScatterSet<@NonNull E> <E extends Object> mutableScatterSetOf(@NonNull E element1)

Returns a new MutableScatterSet with only element1 in it.

mutableScatterSetOf

public static final @NonNull MutableScatterSet<@NonNull E> <E extends Object> mutableScatterSetOf(@NonNull E elements)

Returns a new MutableScatterSet with the specified contents.

mutableScatterSetOf

public static final @NonNull MutableScatterSet<@NonNull E> <E extends Object> mutableScatterSetOf(@NonNull E element1, @NonNull E element2)

Returns a new MutableScatterSet with only element1 and element2 in it.

mutableScatterSetOf

public static final @NonNull MutableScatterSet<@NonNull E> <E extends Object> mutableScatterSetOf(
    @NonNull E element1,
    @NonNull E element2,
    @NonNull E element3
)

Returns a new MutableScatterSet with only element1, element2, and element3 in it.

scatterSetOf

public static final @NonNull ScatterSet<@NonNull E> <E extends Object> scatterSetOf()

Returns an empty, read-only ScatterSet.

scatterSetOf

public static final @NonNull ScatterSet<@NonNull E> <E extends Object> scatterSetOf(@NonNull E element1)

Returns a new read-only ScatterSet with only element1 in it.

scatterSetOf

public static final @NonNull ScatterSet<@NonNull E> <E extends Object> scatterSetOf(@NonNull E elements)

Returns a new read-only ScatterSet with only elements in it.

scatterSetOf

public static final @NonNull ScatterSet<@NonNull E> <E extends Object> scatterSetOf(@NonNull E element1, @NonNull E element2)

Returns a new read-only ScatterSet with only element1 and element2 in it.

scatterSetOf

public static final @NonNull ScatterSet<@NonNull E> <E extends Object> scatterSetOf(
    @NonNull E element1,
    @NonNull E element2,
    @NonNull E element3
)

Returns a new read-only ScatterSet with only element1, element2, and element3 in it.