ImmutableSortedBagFactory
public 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 ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> empty(java.util.Comparator<? super T> comparator)
empty
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> of()
ImmutableSortedBagFactory
ImmutableSortedBagFactory.empty()
.of
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> with()
ImmutableSortedBagFactory
ImmutableSortedBagFactory.empty()
.with
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> of(T... items)
ImmutableSortedBagFactory
of
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> with(T... items)
with
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> ofAll(java.lang.Iterable<? extends T> items)
ImmutableSortedBagFactory
ofAll
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> withAll(java.lang.Iterable<? extends T> items)
withAll
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> of(java.util.Comparator<? super T> comparator)
ImmutableSortedBagFactory
of
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> with(java.util.Comparator<? super T> comparator)
with
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> of(java.util.Comparator<? super T> comparator, T... items)
ImmutableSortedBagFactory
of
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> with(java.util.Comparator<? super T> comparator, T... items)
with
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> ofAll(java.util.Comparator<? super T> comparator, java.lang.Iterable<? extends T> items)
ImmutableSortedBagFactory
ofAll
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> withAll(java.util.Comparator<? super T> comparator, java.lang.Iterable<? extends T> items)
withAll
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> ofSortedBag(SortedBag<T> bag)
ImmutableSortedBagFactory
ofSortedBag
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> withSortedBag(SortedBag<T> bag)
withSortedBag
in interface ImmutableSortedBagFactory
Copyright © 2004–2018. All rights reserved.