Top Description Methods
org.eclipse.collections.api.factory.bag.sorted

public Interface ImmutableSortedBagFactory

Imports
java.util.Comparator, org.eclipse.collections.api.bag.sorted.ImmutableSortedBag, .SortedBag

A factory which creates instances of type ImmutableSortedBag.

Method Summary

Modifier and TypeMethod and Description
public <T> ImmutableSortedBag<T>
public <T> ImmutableSortedBag<T>
empty(Comparator<? super T> comparator)

public <T> ImmutableSortedBag<T>
of()

Same as empty().

public <T> ImmutableSortedBag<T>
of(T... items)

Same as with(Object[]).

public <T> ImmutableSortedBag<T>
of(Comparator<? super T> comparator, T... items)

Same as with(Comparator, Object[]).

public <T> ImmutableSortedBag<T>
of(Comparator<? super T> comparator)

Same as with(Comparator).

public <T> ImmutableSortedBag<T>
ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

public <T> ImmutableSortedBag<T>
ofAll(Comparator<? super T> comparator, Iterable<? extends T> items)

Same as withAll(Comparator, Iterable).

public <T> ImmutableSortedBag<T>
public <T> ImmutableSortedBag<T>
with()

Same as empty().

public <T> ImmutableSortedBag<T>
with(T... items)

public <T> ImmutableSortedBag<T>
with(Comparator<? super T> comparator, T... items)

public <T> ImmutableSortedBag<T>
with(Comparator<? super T> comparator)

public <T> ImmutableSortedBag<T>
withAll(Iterable<? extends T> items)

public <T> ImmutableSortedBag<T>
withAll(Comparator<? super T> comparator, Iterable<? extends T> items)

public <T> ImmutableSortedBag<T>

Method Detail

emptyback to summary
public <T> ImmutableSortedBag<T> empty()
emptyback to summary
public <T> ImmutableSortedBag<T> empty(Comparator<? super T> comparator)
ofback to summary
public <T> ImmutableSortedBag<T> of()

Same as empty().

ofback to summary
public <T> ImmutableSortedBag<T> of(T... items)

Same as with(Object[]).

ofback to summary
public <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator, T... items)

Same as with(Comparator, Object[]).

ofback to summary
public <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator)

Same as with(Comparator).

ofAllback to summary
public <T> ImmutableSortedBag<T> ofAll(Iterable<? extends T> items)

Same as withAll(Iterable).

ofAllback to summary
public <T> ImmutableSortedBag<T> ofAll(Comparator<? super T> comparator, Iterable<? extends T> items)

Same as withAll(Comparator, Iterable).

ofSortedBagback to summary
public <T> ImmutableSortedBag<T> ofSortedBag(SortedBag<T> bag)

Same as withSortedBag(SortedBag).

withback to summary
public <T> ImmutableSortedBag<T> with()

Same as empty().

withback to summary
public <T> ImmutableSortedBag<T> with(T... items)
withback to summary
public <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator, T... items)
withback to summary
public <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator)
withAllback to summary
public <T> ImmutableSortedBag<T> withAll(Iterable<? extends T> items)
withAllback to summary
public <T> ImmutableSortedBag<T> withAll(Comparator<? super T> comparator, Iterable<? extends T> items)
withSortedBagback to summary
public <T> ImmutableSortedBag<T> withSortedBag(SortedBag<T> bag)