OrderedScatterSetKt
public final class OrderedScatterSetKt
Summary
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.