MutableSortedBagFactory
public enum MutableSortedBagFactoryImpl extends java.lang.Enum<MutableSortedBagFactoryImpl> implements MutableSortedBagFactory
Enum Constant | Description |
---|---|
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
<T> MutableSortedBag<T> |
empty() |
|
<T> MutableSortedBag<T> |
empty(java.util.Comparator<? super T> comparator) |
|
<T> MutableSortedBag<T> |
of() |
Same as
MutableSortedBagFactory.with() . |
<T> MutableSortedBag<T> |
of(java.util.Comparator<? super T> comparator) |
|
<T> MutableSortedBag<T> |
of(java.util.Comparator<? super T> comparator,
T... elements) |
|
<T> MutableSortedBag<T> |
of(T... elements) |
|
<T> MutableSortedBag<T> |
ofAll(java.lang.Iterable<? extends T> items) |
|
<T> MutableSortedBag<T> |
ofAll(java.util.Comparator<? super T> comparator,
java.lang.Iterable<? extends T> items) |
|
static MutableSortedBagFactoryImpl |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MutableSortedBagFactoryImpl[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> MutableSortedBag<T> |
with() |
|
<T> MutableSortedBag<T> |
with(java.util.Comparator<? super T> comparator) |
|
<T> MutableSortedBag<T> |
with(java.util.Comparator<? super T> comparator,
T... elements) |
|
<T> MutableSortedBag<T> |
with(T... elements) |
|
<T> MutableSortedBag<T> |
withAll(java.lang.Iterable<? extends T> items) |
|
<T> MutableSortedBag<T> |
withAll(java.util.Comparator<? super T> comparator,
java.lang.Iterable<? extends T> items) |
public static final MutableSortedBagFactoryImpl INSTANCE
public static MutableSortedBagFactoryImpl[] values()
for (MutableSortedBagFactoryImpl c : MutableSortedBagFactoryImpl.values()) System.out.println(c);
public static MutableSortedBagFactoryImpl valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic <T> MutableSortedBag<T> empty()
empty
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> empty(java.util.Comparator<? super T> comparator)
empty
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> of()
MutableSortedBagFactory
MutableSortedBagFactory.with()
.of
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> with()
with
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> of(java.util.Comparator<? super T> comparator)
MutableSortedBagFactory
of
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> with(java.util.Comparator<? super T> comparator)
with
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> of(T... elements)
MutableSortedBagFactory
of
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> with(T... elements)
with
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> of(java.util.Comparator<? super T> comparator, T... elements)
MutableSortedBagFactory
of
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> with(java.util.Comparator<? super T> comparator, T... elements)
with
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> ofAll(java.lang.Iterable<? extends T> items)
MutableSortedBagFactory
ofAll
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> withAll(java.lang.Iterable<? extends T> items)
withAll
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> ofAll(java.util.Comparator<? super T> comparator, java.lang.Iterable<? extends T> items)
MutableSortedBagFactory
ofAll
in interface MutableSortedBagFactory
public <T> MutableSortedBag<T> withAll(java.util.Comparator<? super T> comparator, java.lang.Iterable<? extends T> items)
withAll
in interface MutableSortedBagFactory
Copyright © 2004–2018. All rights reserved.