ImmutableSortedBagFactorypublic enum ImmutableSortedBagFactoryImpl extends java.lang.Enum<ImmutableSortedBagFactoryImpl> implements ImmutableSortedBagFactory
| Enum Constant | Description |
|---|---|
INSTANCE |
| Modifier and Type | Method | Description |
|---|---|---|
<T> ImmutableSortedBag<T> |
empty() |
|
<T> ImmutableSortedBag<T> |
empty(java.util.Comparator<? super T> comparator) |
|
<T> ImmutableSortedBag<T> |
of() |
Same as
ImmutableSortedBagFactory.empty(). |
<T> ImmutableSortedBag<T> |
of(java.util.Comparator<? super T> comparator) |
|
<T> ImmutableSortedBag<T> |
of(java.util.Comparator<? super T> comparator,
T... items) |
|
<T> ImmutableSortedBag<T> |
of(T... items) |
|
<T> ImmutableSortedBag<T> |
ofAll(java.lang.Iterable<? extends T> items) |
|
<T> ImmutableSortedBag<T> |
ofAll(java.util.Comparator<? super T> comparator,
java.lang.Iterable<? extends T> items) |
|
<T> ImmutableSortedBag<T> |
ofSortedBag(SortedBag<T> bag) |
|
static ImmutableSortedBagFactoryImpl |
valueOf(java.lang.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() |
Same as
ImmutableSortedBagFactory.empty(). |
<T> ImmutableSortedBag<T> |
with(java.util.Comparator<? super T> comparator) |
|
<T> ImmutableSortedBag<T> |
with(java.util.Comparator<? super T> comparator,
T... items) |
|
<T> ImmutableSortedBag<T> |
with(T... items) |
|
<T> ImmutableSortedBag<T> |
withAll(java.lang.Iterable<? extends T> items) |
|
<T> ImmutableSortedBag<T> |
withAll(java.util.Comparator<? super T> comparator,
java.lang.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(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> ImmutableSortedBag<T> empty()
empty in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> empty(java.util.Comparator<? super T> comparator)
empty in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> of()
ImmutableSortedBagFactoryImmutableSortedBagFactory.empty().of in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> with()
ImmutableSortedBagFactoryImmutableSortedBagFactory.empty().with in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> of(T... items)
ImmutableSortedBagFactoryof in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> with(T... items)
with in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> ofAll(java.lang.Iterable<? extends T> items)
ImmutableSortedBagFactoryofAll in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> withAll(java.lang.Iterable<? extends T> items)
withAll in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> of(java.util.Comparator<? super T> comparator)
ImmutableSortedBagFactoryof in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> with(java.util.Comparator<? super T> comparator)
with in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> of(java.util.Comparator<? super T> comparator, T... items)
ImmutableSortedBagFactoryof in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> with(java.util.Comparator<? super T> comparator, T... items)
with in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> ofAll(java.util.Comparator<? super T> comparator, java.lang.Iterable<? extends T> items)
ImmutableSortedBagFactoryofAll in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> withAll(java.util.Comparator<? super T> comparator, java.lang.Iterable<? extends T> items)
withAll in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> ofSortedBag(SortedBag<T> bag)
ImmutableSortedBagFactoryofSortedBag in interface ImmutableSortedBagFactorypublic <T> ImmutableSortedBag<T> withSortedBag(SortedBag<T> bag)
withSortedBag in interface ImmutableSortedBagFactoryCopyright © 2004–2017. All rights reserved.