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");
public static final ImmutableBagFactory immutable
public static final MutableBagFactory mutable
Copyright © 2004–2016. All rights reserved.