|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Bag | |
---|---|
org.apache.commons.collections | This package contains the interfaces and utilities shared across all the subpackages of this component. |
org.apache.commons.collections.bag |
This package contains implementations of the
Bag and
SortedBag interfaces. |
Uses of Bag in org.apache.commons.collections |
---|
Subinterfaces of Bag in org.apache.commons.collections | |
---|---|
interface |
SortedBag<E>
Defines a type of Bag that maintains a sorted order among
its unique representative members. |
Fields in org.apache.commons.collections declared as Bag | |
---|---|
static Bag |
BagUtils.EMPTY_BAG
An empty unmodifiable bag. |
static Bag |
BagUtils.EMPTY_SORTED_BAG
An empty unmodifiable sorted bag. |
Methods in org.apache.commons.collections that return Bag | ||
---|---|---|
static
|
BagUtils.predicatedBag(Bag<E> bag,
Predicate<? super E> predicate)
Returns a predicated (validating) bag backed by the given bag. |
|
static
|
BagUtils.synchronizedBag(Bag<E> bag)
Returns a synchronized (thread-safe) bag backed by the given bag. |
|
static
|
BagUtils.transformedBag(Bag<I> bag,
Transformer<I,O> transformer)
Deprecated. TransformedCollections are not type-safe in Java 1.5. |
|
static
|
BagUtils.typedBag(Bag<E> bag,
Class<E> type)
Deprecated. Java 1.5 generics makes this method no longer useful. |
|
static
|
BagUtils.unmodifiableBag(Bag<E> bag)
Returns an unmodifiable view of the given bag. |
Methods in org.apache.commons.collections with parameters of type Bag | ||
---|---|---|
static
|
BagUtils.predicatedBag(Bag<E> bag,
Predicate<? super E> predicate)
Returns a predicated (validating) bag backed by the given bag. |
|
static
|
BagUtils.synchronizedBag(Bag<E> bag)
Returns a synchronized (thread-safe) bag backed by the given bag. |
|
static
|
BagUtils.transformedBag(Bag<I> bag,
Transformer<I,O> transformer)
Deprecated. TransformedCollections are not type-safe in Java 1.5. |
|
static
|
BagUtils.typedBag(Bag<E> bag,
Class<E> type)
Deprecated. Java 1.5 generics makes this method no longer useful. |
|
static
|
BagUtils.unmodifiableBag(Bag<E> bag)
Returns an unmodifiable view of the given bag. |
Uses of Bag in org.apache.commons.collections.bag |
---|
Classes in org.apache.commons.collections.bag that implement Bag | |
---|---|
class |
AbstractBagDecorator<E>
Decorates another Bag to provide additional behaviour. |
class |
AbstractMapBag<E>
Abstract implementation of the Bag interface to simplify the creation
of subclass implementations. |
class |
AbstractSortedBagDecorator<E>
Decorates another SortedBag to provide additional behaviour. |
class |
HashBag<E>
Implements Bag , using a HashMap to provide the
data storage. |
class |
PredicatedBag<E>
Decorates another Bag to validate that additions
match a specified predicate. |
class |
PredicatedSortedBag<E>
Decorates another SortedBag to validate that additions
match a specified predicate. |
class |
SynchronizedBag<E>
Decorates another Bag to synchronize its behaviour
for a multi-threaded environment. |
class |
SynchronizedSortedBag<E>
Decorates another SortedBag to synchronize its behaviour
for a multi-threaded environment. |
class |
TransformedBag
Decorates another Bag to transform objects that are added. |
class |
TransformedSortedBag
Decorates another SortedBag to transform objects that are added. |
class |
TreeBag<E>
Implements SortedBag , using a TreeMap to provide
the data storage. |
class |
UnmodifiableBag<E>
Decorates another Bag to ensure it can't be altered. |
class |
UnmodifiableSortedBag<E>
Decorates another SortedBag to ensure it can't be altered. |
Methods in org.apache.commons.collections.bag that return Bag | ||
---|---|---|
static
|
UnmodifiableBag.decorate(Bag<E> bag)
Factory method to create an unmodifiable bag. |
|
static
|
SynchronizedBag.decorate(Bag<E> bag)
Factory method to create a synchronized bag. |
|
static
|
PredicatedBag.decorate(Bag<E> bag,
Predicate<? super E> predicate)
Factory method to create a predicated (validating) bag. |
|
static
|
TransformedBag.decorate(Bag<I> bag,
Transformer<? super I,? extends O> transformer)
Factory method to create a transforming bag. |
|
static Bag |
TypedBag.decorate(Bag bag,
Class type)
Deprecated. Factory method to create a typed bag. |
|
protected Bag |
TransformedBag.getBag()
Gets the decorated bag. |
|
protected Bag<E> |
SynchronizedBag.getBag()
Gets the bag being decorated. |
|
protected Bag<E> |
PredicatedBag.getBag()
Gets the decorated bag. |
|
protected Bag<E> |
AbstractBagDecorator.getBag()
Gets the bag being decorated. |
Methods in org.apache.commons.collections.bag with parameters of type Bag | ||
---|---|---|
static
|
UnmodifiableBag.decorate(Bag<E> bag)
Factory method to create an unmodifiable bag. |
|
static
|
SynchronizedBag.decorate(Bag<E> bag)
Factory method to create a synchronized bag. |
|
static
|
PredicatedBag.decorate(Bag<E> bag,
Predicate<? super E> predicate)
Factory method to create a predicated (validating) bag. |
|
static
|
TransformedBag.decorate(Bag<I> bag,
Transformer<? super I,? extends O> transformer)
Factory method to create a transforming bag. |
|
static Bag |
TypedBag.decorate(Bag bag,
Class type)
Deprecated. Factory method to create a typed bag. |
Constructors in org.apache.commons.collections.bag with parameters of type Bag | |
---|---|
AbstractBagDecorator(Bag<E> bag)
Constructor that wraps (not copies). |
|
PredicatedBag(Bag<E> bag,
Predicate<? super E> predicate)
Constructor that wraps (not copies). |
|
SynchronizedBag(Bag<E> bag)
Constructor that wraps (not copies). |
|
SynchronizedBag(Bag<E> bag,
Object lock)
Constructor that wraps (not copies). |
|
SynchronizedSortedBag(Bag<E> bag,
Object lock)
Constructor that wraps (not copies). |
|
TransformedBag(Bag bag,
Transformer transformer)
Constructor that wraps (not copies). |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |