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
Modifier and Type Method Description <T> ImmutableBag<T>
empty()
<T> ImmutableBag<T>
of()
Same asImmutableBagFactory.empty()
.<T> ImmutableBag<T>
of(T element)
Same asImmutableBagFactory.with(Object)
.<T> ImmutableBag<T>
of(T... elements)
Same asImmutableBagFactory.with(Object[])
.<T> ImmutableBag<T>
ofAll(Iterable<? extends T> items)
<T> ImmutableBag<T>
with()
Same asImmutableBagFactory.empty()
.<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 Details
-
Constructor Details
-
ImmutableBagFactoryImpl
public ImmutableBagFactoryImpl()
-
-
Method Details
-
empty
- Specified by:
empty
in interfaceImmutableBagFactory
-
of
Description copied from interface:ImmutableBagFactory
Same asImmutableBagFactory.empty()
.- Specified by:
of
in interfaceImmutableBagFactory
-
with
Description copied from interface:ImmutableBagFactory
Same asImmutableBagFactory.empty()
.- Specified by:
with
in interfaceImmutableBagFactory
-
of
Description copied from interface:ImmutableBagFactory
Same asImmutableBagFactory.with(Object)
.- Specified by:
of
in interfaceImmutableBagFactory
-
with
- Specified by:
with
in interfaceImmutableBagFactory
-
of
Description copied from interface:ImmutableBagFactory
Same asImmutableBagFactory.with(Object[])
.- Specified by:
of
in interfaceImmutableBagFactory
-
with
- Specified by:
with
in interfaceImmutableBagFactory
-
ofAll
Description copied from interface:ImmutableBagFactory
- Specified by:
ofAll
in interfaceImmutableBagFactory
-
withAll
- Specified by:
withAll
in interfaceImmutableBagFactory
-