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 ImmutableSortedBagFactory
INSTANCE
-
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:
empty
in interfaceImmutableSortedBagFactory
-
empty
public <T> ImmutableSortedBag<T> empty(Comparator<? super T> comparator)
- Specified by:
empty
in interfaceImmutableSortedBagFactory
-
of
public <T> ImmutableSortedBag<T> of()
- Specified by:
of
in interfaceImmutableSortedBagFactory
-
with
public <T> ImmutableSortedBag<T> with()
- Specified by:
with
in interfaceImmutableSortedBagFactory
-
of
public <T> ImmutableSortedBag<T> of(T... items)
- Specified by:
of
in interfaceImmutableSortedBagFactory
-
with
public <T> ImmutableSortedBag<T> with(T... items)
- Specified by:
with
in interfaceImmutableSortedBagFactory
-
ofAll
public <T> ImmutableSortedBag<T> ofAll(Iterable<? extends T> items)
- Specified by:
ofAll
in interfaceImmutableSortedBagFactory
-
withAll
public <T> ImmutableSortedBag<T> withAll(Iterable<? extends T> items)
- Specified by:
withAll
in interfaceImmutableSortedBagFactory
-
of
public <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator)
- Specified by:
of
in interfaceImmutableSortedBagFactory
-
with
public <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator)
- Specified by:
with
in interfaceImmutableSortedBagFactory
-
of
public <T> ImmutableSortedBag<T> of(Comparator<? super T> comparator, T... items)
- Specified by:
of
in interfaceImmutableSortedBagFactory
-
with
public <T> ImmutableSortedBag<T> with(Comparator<? super T> comparator, T... items)
- Specified by:
with
in interfaceImmutableSortedBagFactory
-
ofAll
public <T> ImmutableSortedBag<T> ofAll(Comparator<? super T> comparator, Iterable<? extends T> items)
- Specified by:
ofAll
in interfaceImmutableSortedBagFactory
-
withAll
public <T> ImmutableSortedBag<T> withAll(Comparator<? super T> comparator, Iterable<? extends T> items)
- Specified by:
withAll
in interfaceImmutableSortedBagFactory
-
ofSortedBag
public <T> ImmutableSortedBag<T> ofSortedBag(SortedBag<T> bag)
- Specified by:
ofSortedBag
in interfaceImmutableSortedBagFactory
-
withSortedBag
public <T> ImmutableSortedBag<T> withSortedBag(SortedBag<T> bag)
- Specified by:
withSortedBag
in interfaceImmutableSortedBagFactory
-
-