Class UnmodifiableBag<E>

Type Parameters:
E - The type of elements in this bag
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Bag<E>, Unmodifiable

@Deprecated public final class UnmodifiableBag<E> extends AbstractBagDecorator<E> implements Unmodifiable
Deprecated.
Since 4.6.0, use UnmodifiableMultiSet instead.
Decorates another Bag to ensure it can't be altered.

This class is Serializable from Commons Collections 3.1.

Attempts to modify it will result in an UnsupportedOperationException.

Since:
3.0
See Also: