OrderedScatterSetKt

Added in 1.5.0-beta01

public final class OrderedScatterSetKt


Summary

Public methods

static final @NonNull OrderedScatterSet<@NonNull E>

Returns an empty, read-only OrderedScatterSet.

static final @NonNull MutableOrderedScatterSet<@NonNull E>

Returns a new MutableOrderedScatterSet.

static final @NonNull MutableOrderedScatterSet<@NonNull E>
<E extends Object> mutableOrderedScatterSetOf(@NonNull E element1)

Returns a new MutableOrderedScatterSet with only element1 in it.

static final @NonNull MutableOrderedScatterSet<@NonNull E>
<E extends Object> mutableOrderedScatterSetOf(@NonNull E elements)

Returns a new MutableOrderedScatterSet with the specified contents.

static final @NonNull MutableOrderedScatterSet<@NonNull E>
<E extends Object> mutableOrderedScatterSetOf(
    @NonNull E element1,
    @NonNull E element2
)

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

static final @NonNull MutableOrderedScatterSet<@NonNull E>
<E extends Object> mutableOrderedScatterSetOf(
    @NonNull E element1,
    @NonNull E element2,
    @NonNull E element3
)

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

static final @NonNull OrderedScatterSet<@NonNull E>
<E extends Object> orderedScatterSetOf()

Returns an empty, read-only OrderedScatterSet.

static final @NonNull OrderedScatterSet<@NonNull E>
<E extends Object> orderedScatterSetOf(@NonNull E element1)

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

static final @NonNull OrderedScatterSet<@NonNull E>
<E extends Object> orderedScatterSetOf(@NonNull E elements)

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

static final @NonNull OrderedScatterSet<@NonNull E>
<E extends Object> orderedScatterSetOf(@NonNull E element1, @NonNull E element2)

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

static final @NonNull OrderedScatterSet<@NonNull E>
<E extends Object> orderedScatterSetOf(
    @NonNull E element1,
    @NonNull E element2,
    @NonNull E element3
)

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

Public methods

emptyOrderedScatterSet

public static final @NonNull OrderedScatterSet<@NonNull E> <E extends Object> emptyOrderedScatterSet()

Returns an empty, read-only OrderedScatterSet.

mutableOrderedScatterSetOf

public static final @NonNull MutableOrderedScatterSet<@NonNull E> <E extends Object> mutableOrderedScatterSetOf()

Returns a new MutableOrderedScatterSet.

mutableOrderedScatterSetOf

public static final @NonNull MutableOrderedScatterSet<@NonNull E> <E extends Object> mutableOrderedScatterSetOf(@NonNull E element1)

Returns a new MutableOrderedScatterSet with only element1 in it.

mutableOrderedScatterSetOf

public static final @NonNull MutableOrderedScatterSet<@NonNull E> <E extends Object> mutableOrderedScatterSetOf(@NonNull E elements)

Returns a new MutableOrderedScatterSet with the specified contents.

mutableOrderedScatterSetOf

public static final @NonNull MutableOrderedScatterSet<@NonNull E> <E extends Object> mutableOrderedScatterSetOf(
    @NonNull E element1,
    @NonNull E element2
)

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

mutableOrderedScatterSetOf

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

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

orderedScatterSetOf

public static final @NonNull OrderedScatterSet<@NonNull E> <E extends Object> orderedScatterSetOf()

Returns an empty, read-only OrderedScatterSet.

orderedScatterSetOf

public static final @NonNull OrderedScatterSet<@NonNull E> <E extends Object> orderedScatterSetOf(@NonNull E element1)

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

orderedScatterSetOf

public static final @NonNull OrderedScatterSet<@NonNull E> <E extends Object> orderedScatterSetOf(@NonNull E elements)

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

orderedScatterSetOf

public static final @NonNull OrderedScatterSet<@NonNull E> <E extends Object> orderedScatterSetOf(@NonNull E element1, @NonNull E element2)

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

orderedScatterSetOf

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

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