Class ImmutableBagFactoryImpl
- java.lang.Object
-
- org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl
-
- All Implemented Interfaces:
ImmutableBagFactory
public class ImmutableBagFactoryImpl extends Object implements ImmutableBagFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ImmutableBagFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description ImmutableBagFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ImmutableBag<T>
empty()
<T> ImmutableBag<T>
of()
<T> ImmutableBag<T>
of(T element)
<T> ImmutableBag<T>
of(T... elements)
<T> ImmutableBag<T>
ofAll(Iterable<? extends T> items)
<T> ImmutableBag<T>
with()
<T> ImmutableBag<T>
with(T element)
<T> ImmutableBag<T>
with(T... elements)
<T> ImmutableBag<T>
withAll(Iterable<? extends T> items)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.factory.bag.ImmutableBagFactory
fromStream, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, ofOccurrences, withOccurrences, withOccurrences, withOccurrences, withOccurrences, withOccurrences
-
-
-
-
Field Detail
-
INSTANCE
public static final ImmutableBagFactory INSTANCE
-
-
Method Detail
-
empty
public <T> ImmutableBag<T> empty()
- Specified by:
empty
in interfaceImmutableBagFactory
-
of
public <T> ImmutableBag<T> of()
- Specified by:
of
in interfaceImmutableBagFactory
-
with
public <T> ImmutableBag<T> with()
- Specified by:
with
in interfaceImmutableBagFactory
-
of
public <T> ImmutableBag<T> of(T element)
- Specified by:
of
in interfaceImmutableBagFactory
-
with
public <T> ImmutableBag<T> with(T element)
- Specified by:
with
in interfaceImmutableBagFactory
-
of
public <T> ImmutableBag<T> of(T... elements)
- Specified by:
of
in interfaceImmutableBagFactory
-
with
public <T> ImmutableBag<T> with(T... elements)
- Specified by:
with
in interfaceImmutableBagFactory
-
ofAll
public <T> ImmutableBag<T> ofAll(Iterable<? extends T> items)
- Specified by:
ofAll
in interfaceImmutableBagFactory
-
withAll
public <T> ImmutableBag<T> withAll(Iterable<? extends T> items)
- Specified by:
withAll
in interfaceImmutableBagFactory
-
-