| Modifier and Type | Method and Description |
|---|---|
static <E> Bag<E> |
emptyBag()
Returns the empty
Bag for a particular type (type-safe). |
public static final Bag EMPTY_BAG
Bag.public static <E> Bag<E> emptyBag()
Bag for a particular type (type-safe). Note
that unlike this method, the like-named static field does not provide
type safety.E - the type of the bag's elements.Bag.Copyright © 2012–2015. All rights reserved.