Interface ImmutableSortedBagFactory
public interface ImmutableSortedBagFactory
A factory which creates instances of type
ImmutableSortedBag.-
Method Summary
Modifier and TypeMethodDescription<T> ImmutableSortedBag<T>empty()<T> ImmutableSortedBag<T>empty(Comparator<? super T> comparator) <T> ImmutableSortedBag<T>of()Same asempty().<T> ImmutableSortedBag<T>of(Comparator<? super T> comparator) Same aswith(Comparator).<T> ImmutableSortedBag<T>of(Comparator<? super T> comparator, T... items) Same aswith(Comparator, Object[]).<T> ImmutableSortedBag<T>of(T... items) Same aswith(Object[]).<T> ImmutableSortedBag<T>Same aswithAll(Iterable).<T> ImmutableSortedBag<T>ofAll(Comparator<? super T> comparator, Iterable<? extends T> items) Same aswithAll(Comparator, Iterable).<T> ImmutableSortedBag<T>ofSortedBag(SortedBag<T> bag) Same aswithSortedBag(SortedBag).<T> ImmutableSortedBag<T>with()Same asempty().<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><T> ImmutableSortedBag<T>withAll(Comparator<? super T> comparator, Iterable<? extends T> items) <T> ImmutableSortedBag<T>withSortedBag(SortedBag<T> bag)
-
Method Details
-
empty
-
empty
-
of
Same asempty(). -
with
Same asempty(). -
of
Same aswith(Object[]). -
with
-
ofAll
Same aswithAll(Iterable). -
withAll
-
of
Same aswith(Comparator, Object[]). -
with
-
of
Same aswith(Comparator). -
with
-
ofAll
Same aswithAll(Comparator, Iterable). -
withAll
-
ofSortedBag
Same aswithSortedBag(SortedBag). -
withSortedBag
-