ImmutableSortedBagFactory
public class ImmutableSortedBagFactoryImpl extends java.lang.Object implements ImmutableSortedBagFactory
Modifier and Type | Field | Description |
---|---|---|
static ImmutableSortedBagFactory |
INSTANCE |
Constructor | Description |
---|---|
ImmutableSortedBagFactoryImpl() |
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) |
|
<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 ImmutableSortedBagFactory INSTANCE
public <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–2020. All rights reserved.