Package | Description |
---|---|
org.apache.commons.collections |
This package contains the interfaces and utilities shared across all the subpackages of this component.
|
org.apache.commons.collections.bag |
Modifier and Type | Class and Description |
---|---|
class |
TreeBag
Deprecated.
Moved to bag subpackage and rewritten internally. Due to be removed in v4.0.
|
Modifier and Type | Method and Description |
---|---|
static SortedBag |
BagUtils.predicatedSortedBag(SortedBag bag,
Predicate predicate)
Returns a predicated (validating) sorted bag backed by the given sorted bag.
|
static SortedBag |
BagUtils.synchronizedSortedBag(SortedBag bag)
Returns a synchronized (thread-safe) sorted bag backed by the given
sorted bag.
|
static SortedBag |
BagUtils.transformedSortedBag(SortedBag bag,
Transformer transformer)
Returns a transformed sorted bag backed by the given bag.
|
static SortedBag |
BagUtils.typedSortedBag(SortedBag bag,
Class type)
Returns a typed sorted bag backed by the given bag.
|
static SortedBag |
BagUtils.unmodifiableSortedBag(SortedBag bag)
Returns an unmodifiable view of the given sorted bag.
|
Modifier and Type | Method and Description |
---|---|
static SortedBag |
BagUtils.predicatedSortedBag(SortedBag bag,
Predicate predicate)
Returns a predicated (validating) sorted bag backed by the given sorted bag.
|
static SortedBag |
BagUtils.synchronizedSortedBag(SortedBag bag)
Returns a synchronized (thread-safe) sorted bag backed by the given
sorted bag.
|
static SortedBag |
BagUtils.transformedSortedBag(SortedBag bag,
Transformer transformer)
Returns a transformed sorted bag backed by the given bag.
|
static SortedBag |
BagUtils.typedSortedBag(SortedBag bag,
Class type)
Returns a typed sorted bag backed by the given bag.
|
static SortedBag |
BagUtils.unmodifiableSortedBag(SortedBag bag)
Returns an unmodifiable view of the given sorted bag.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSortedBagDecorator
Decorates another
SortedBag to provide additional behaviour. |
class |
PredicatedSortedBag
Decorates another
SortedBag to validate that additions
match a specified predicate. |
class |
SynchronizedSortedBag
Decorates another
SortedBag to synchronize its behaviour
for a multi-threaded environment. |
class |
TransformedSortedBag
Decorates another
SortedBag to transform objects that are added. |
class |
UnmodifiableSortedBag
Decorates another
SortedBag to ensure it can't be altered. |
Modifier and Type | Method and Description |
---|---|
static SortedBag |
UnmodifiableSortedBag.decorate(SortedBag bag)
Factory method to create an unmodifiable bag.
|
static SortedBag |
SynchronizedSortedBag.decorate(SortedBag bag)
Factory method to create a synchronized sorted bag.
|
static SortedBag |
TypedSortedBag.decorate(SortedBag bag,
Class type)
Factory method to create a typed sorted bag.
|
static SortedBag |
PredicatedSortedBag.decorate(SortedBag bag,
Predicate predicate)
Factory method to create a predicated (validating) bag.
|
static SortedBag |
TransformedSortedBag.decorate(SortedBag bag,
Transformer transformer)
Factory method to create a transforming sorted bag.
|
protected SortedBag |
TransformedSortedBag.getSortedBag()
Gets the decorated bag.
|
protected SortedBag |
AbstractSortedBagDecorator.getSortedBag()
Gets the bag being decorated.
|
protected SortedBag |
SynchronizedSortedBag.getSortedBag()
Gets the bag being decorated.
|
protected SortedBag |
PredicatedSortedBag.getSortedBag()
Gets the decorated sorted bag.
|
Modifier and Type | Method and Description |
---|---|
static SortedBag |
UnmodifiableSortedBag.decorate(SortedBag bag)
Factory method to create an unmodifiable bag.
|
static SortedBag |
SynchronizedSortedBag.decorate(SortedBag bag)
Factory method to create a synchronized sorted bag.
|
static SortedBag |
TypedSortedBag.decorate(SortedBag bag,
Class type)
Factory method to create a typed sorted bag.
|
static SortedBag |
PredicatedSortedBag.decorate(SortedBag bag,
Predicate predicate)
Factory method to create a predicated (validating) bag.
|
static SortedBag |
TransformedSortedBag.decorate(SortedBag bag,
Transformer transformer)
Factory method to create a transforming sorted bag.
|
Constructor and Description |
---|
AbstractSortedBagDecorator(SortedBag bag)
Constructor that wraps (not copies).
|
PredicatedSortedBag(SortedBag bag,
Predicate predicate)
Constructor that wraps (not copies).
|
SynchronizedSortedBag(SortedBag bag)
Constructor that wraps (not copies).
|
TransformedSortedBag(SortedBag bag,
Transformer transformer)
Constructor that wraps (not copies).
|
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.