Top Fields Constructors Methods
org.eclipse.collections.impl.bag.immutable

public Class ImmutableBagFactoryImpl

extends Object
implements ImmutableBagFactory
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.factory.bag.ImmutableBagFactory
Annotations
@ServiceProvider:ImmutableBagFactory
Imports
org.eclipse.collections.api.bag.Bag, .ImmutableBag, org.eclipse.collections.api.factory.bag.ImmutableBagFactory, org.eclipse.collections.impl.utility.Iterate

Field Summary

Modifier and TypeField and Description
public static final ImmutableBagFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> ImmutableBag<T>
public <T> ImmutableBag<T>
public <T> ImmutableBag<T>
public <T> ImmutableBag<T>
public <T> ImmutableBag<T>
public <T> ImmutableBag<T>
public <T> ImmutableBag<T>
public <T> ImmutableBag<T>
public <T> ImmutableBag<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final ImmutableBagFactory INSTANCE

Constructor Detail

ImmutableBagFactoryImplback to summary
public ImmutableBagFactoryImpl()

Method Detail

emptyback to summary
public <T> ImmutableBag<T> empty()

Implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory.empty.

Annotations
@Override
ofback to summary
public <T> ImmutableBag<T> of()

Implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory.of.

Doc from org.eclipse.collections.api.factory.bag.ImmutableBagFactory.of.

Same as empty().

Annotations
@Override
ofback to summary
public <T> ImmutableBag<T> of(T element)

Implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory.of.

Doc from org.eclipse.collections.api.factory.bag.ImmutableBagFactory.of.

Same as with(Object).

Annotations
@Override
ofback to summary
public <T> ImmutableBag<T> of(T... elements)

Implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory.of, org.eclipse.collections.api.factory.bag.ImmutableBagFactory.of.

Doc from org.eclipse.collections.api.factory.bag.ImmutableBagFactory.of.

Same as with(Object[]).

Annotations
@Override
ofAllback to summary
public <T> ImmutableBag<T> ofAll(Iterable<? extends T> items)

Implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory.ofAll.

Doc from org.eclipse.collections.api.factory.bag.ImmutableBagFactory.ofAll.

Same as withAll(Iterable).

Annotations
@Override
withback to summary
public <T> ImmutableBag<T> with()

Implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory.with.

Doc from org.eclipse.collections.api.factory.bag.ImmutableBagFactory.with.

Same as empty().

Annotations
@Override
withback to summary
public <T> ImmutableBag<T> with(T element)

Implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory.with.

Annotations
@Override
withback to summary
public <T> ImmutableBag<T> with(T... elements)

Implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory.with, org.eclipse.collections.api.factory.bag.ImmutableBagFactory.with.

Annotations
@Override
withAllback to summary
public <T> ImmutableBag<T> withAll(Iterable<? extends T> items)

Implements org.eclipse.collections.api.factory.bag.ImmutableBagFactory.withAll.

Annotations
@Override