Class Bags
java.lang.Object
org.eclipse.collections.impl.factory.Bags
This class should be used to create instances of MutableBag and ImmutableBag
Mutable Examples:
MutableBag<String> emptyBag = Bags.mutable.empty();
MutableBag<String> bagWith = Bags.mutable.with("a", "b", "c");
MutableBag<String> bagOf = Bags.mutable.of("a", "b", "c");
Immutable Examples:
ImmutableBag<String> emptyBag = Bags.immutable.empty();
ImmutableBag<String> bagWith = Bags.immutable.with("a", "b", "c");
ImmutableBag<String> bagOf = Bags.immutable.of("a", "b", "c");
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ImmutableBagFactorystatic final MultiReaderBagFactorystatic final MutableBagFactory -
Method Summary
-
Field Details
-
immutable
-
mutable
-
multiReader
-