public final class Bags extends Object
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 | Description |
---|---|---|
static ImmutableBagFactory |
immutable |
|
static MultiReaderBagFactory |
multiReader |
|
static MutableBagFactory |
mutable |
public static final ImmutableBagFactory immutable
public static final MutableBagFactory mutable
public static final MultiReaderBagFactory multiReader
Copyright © 2004–2019. All rights reserved.