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");
| Modifier and Type | Field and Description |
|---|---|
| public static final ImmutableBagFactory | |
| public static final MultiReaderBagFactory | |
| public static final MutableBagFactory |
| Access | Constructor and Description |
|---|---|
| private |
| immutable | back to summary |
|---|---|
| public static final ImmutableBagFactory immutable | |
| multiReader | back to summary |
|---|---|
| public static final MultiReaderBagFactory multiReader | |
| mutable | back to summary |
|---|---|
| public static final MutableBagFactory mutable | |
| Bags | back to summary |
|---|---|
| private Bags() | |