Modifier and Type | Method and Description |
---|---|
Bag |
Bag.copy()
Return a bag that is an exact duplicate of this Bag
|
Bag |
Bag.union(Bag otherBag)
Return union of this Bag and Bag specified in parameter
|
Modifier and Type | Method and Description |
---|---|
boolean |
Bag.equals(Bag otherBag)
Returns True if this Bag is equal to Bag given in parameter.
|
Bag |
Bag.union(Bag otherBag)
Return union of this Bag and Bag specified in parameter
|