public class ImmutableSortedBagFactoryImpl extends Object implements ImmutableSortedBagFactory
Constructor and Description |
---|
ImmutableSortedBagFactoryImpl() |
public <T> ImmutableSortedBag<T> empty()
empty
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> empty(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(Iterable<? extends T> items)
ImmutableSortedBagFactory
ofAll
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> withAll(Iterable<? extends T> items)
withAll
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator)
ImmutableSortedBagFactory
of
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator)
with
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator, T... items)
ImmutableSortedBagFactory
of
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator, T... items)
with
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> ofAll(Comparator<? super T> comparator, Iterable<? extends T> items)
ImmutableSortedBagFactory
ofAll
in interface ImmutableSortedBagFactory
public <T> ImmutableSortedBag<T> withAll(Comparator<? super T> comparator, 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–2016. All rights reserved.