public enum ImmutableSortedBagFactoryImpl extends Enum<ImmutableSortedBagFactoryImpl> implements ImmutableSortedBagFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T> ImmutableSortedBag<T> |
empty() |
<T> ImmutableSortedBag<T> |
empty(Comparator<? super T> comparator) |
<T> ImmutableSortedBag<T> |
of() |
<T> ImmutableSortedBag<T> |
of(Comparator<? super T> comparator) |
<T> ImmutableSortedBag<T> |
of(Comparator<? super T> comparator,
T... items) |
<T> ImmutableSortedBag<T> |
of(T... items) |
<T> ImmutableSortedBag<T> |
ofAll(Comparator<? super T> comparator,
Iterable<? extends T> items) |
<T> ImmutableSortedBag<T> |
ofAll(Iterable<? extends T> items) |
<T> ImmutableSortedBag<T> |
ofSortedBag(SortedBag<T> bag) |
static ImmutableSortedBagFactoryImpl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImmutableSortedBagFactoryImpl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> ImmutableSortedBag<T> |
with() |
<T> ImmutableSortedBag<T> |
with(Comparator<? super T> comparator) |
<T> ImmutableSortedBag<T> |
with(Comparator<? super T> comparator,
T... items) |
<T> ImmutableSortedBag<T> |
with(T... items) |
<T> ImmutableSortedBag<T> |
withAll(Comparator<? super T> comparator,
Iterable<? extends T> items) |
<T> ImmutableSortedBag<T> |
withAll(Iterable<? extends T> items) |
<T> ImmutableSortedBag<T> |
withSortedBag(SortedBag<T> bag) |
public static final ImmutableSortedBagFactoryImpl INSTANCE
public static ImmutableSortedBagFactoryImpl[] values()
for (ImmutableSortedBagFactoryImpl c : ImmutableSortedBagFactoryImpl.values()) System.out.println(c);
public static ImmutableSortedBagFactoryImpl valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <T> ImmutableSortedBag<T> empty()
empty in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> empty(Comparator<? super T> comparator)
empty in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> of()
of in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> with()
with in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> of(T... items)
of in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> with(T... items)
with in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> ofAll(Iterable<? extends T> items)
ofAll in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> withAll(Iterable<? extends T> items)
withAll in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator)
of in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator)
with in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator, T... items)
of in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator, T... items)
with in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> ofAll(Comparator<? super T> comparator, Iterable<? extends T> items)
ofAll in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> withAll(Comparator<? super T> comparator, Iterable<? extends T> items)
withAll in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> ofSortedBag(SortedBag<T> bag)
ofSortedBag in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> withSortedBag(SortedBag<T> bag)
withSortedBag in interface ImmutableSortedBagFactoryCopyright © 2004–2017. All rights reserved.