Class ImmutableSortedBagFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.bag.sorted.immutable.ImmutableSortedBagFactoryImpl
-
- All Implemented Interfaces:
ImmutableSortedBagFactory
public class ImmutableSortedBagFactoryImpl extends Object implements ImmutableSortedBagFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ImmutableSortedBagFactoryINSTANCE
-
Constructor Summary
Constructors Constructor Description ImmutableSortedBagFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ImmutableSortedBag<T>empty()<T> ImmutableSortedBag<T>empty(Comparator<? super T> comparator)<T> ImmutableSortedBag<T>of()<T> ImmutableSortedBag<T>of(Comparator<? super T> comparator)<T> ImmutableSortedBag<T>of(Comparator<? super T> comparator, T... items)<T> ImmutableSortedBag<T>of(T... items)<T> ImmutableSortedBag<T>ofAll(Iterable<? extends T> items)<T> ImmutableSortedBag<T>ofAll(Comparator<? super T> comparator, Iterable<? extends T> items)<T> ImmutableSortedBag<T>ofSortedBag(SortedBag<T> bag)<T> ImmutableSortedBag<T>with()<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>withAll(Iterable<? extends T> items)<T> ImmutableSortedBag<T>withAll(Comparator<? super T> comparator, Iterable<? extends T> items)<T> ImmutableSortedBag<T>withSortedBag(SortedBag<T> bag)
-
-
-
Field Detail
-
INSTANCE
public static final ImmutableSortedBagFactory INSTANCE
-
-
Method Detail
-
empty
public <T> ImmutableSortedBag<T> empty()
- Specified by:
emptyin interfaceImmutableSortedBagFactory
-
empty
public <T> ImmutableSortedBag<T> empty(Comparator<? super T> comparator)
- Specified by:
emptyin interfaceImmutableSortedBagFactory
-
of
public <T> ImmutableSortedBag<T> of()
- Specified by:
ofin interfaceImmutableSortedBagFactory
-
with
public <T> ImmutableSortedBag<T> with()
- Specified by:
within interfaceImmutableSortedBagFactory
-
of
public <T> ImmutableSortedBag<T> of(T... items)
- Specified by:
ofin interfaceImmutableSortedBagFactory
-
with
public <T> ImmutableSortedBag<T> with(T... items)
- Specified by:
within interfaceImmutableSortedBagFactory
-
ofAll
public <T> ImmutableSortedBag<T> ofAll(Iterable<? extends T> items)
- Specified by:
ofAllin interfaceImmutableSortedBagFactory
-
withAll
public <T> ImmutableSortedBag<T> withAll(Iterable<? extends T> items)
- Specified by:
withAllin interfaceImmutableSortedBagFactory
-
of
public <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator)
- Specified by:
ofin interfaceImmutableSortedBagFactory
-
with
public <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator)
- Specified by:
within interfaceImmutableSortedBagFactory
-
of
public <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator, T... items)
- Specified by:
ofin interfaceImmutableSortedBagFactory
-
with
public <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator, T... items)
- Specified by:
within interfaceImmutableSortedBagFactory
-
ofAll
public <T> ImmutableSortedBag<T> ofAll(Comparator<? super T> comparator, Iterable<? extends T> items)
- Specified by:
ofAllin interfaceImmutableSortedBagFactory
-
withAll
public <T> ImmutableSortedBag<T> withAll(Comparator<? super T> comparator, Iterable<? extends T> items)
- Specified by:
withAllin interfaceImmutableSortedBagFactory
-
ofSortedBag
public <T> ImmutableSortedBag<T> ofSortedBag(SortedBag<T> bag)
- Specified by:
ofSortedBagin interfaceImmutableSortedBagFactory
-
withSortedBag
public <T> ImmutableSortedBag<T> withSortedBag(SortedBag<T> bag)
- Specified by:
withSortedBagin interfaceImmutableSortedBagFactory
-
-