Package | Description |
---|---|
org.apache.commons.collections4 |
This package contains the interfaces and utilities shared across all the subpackages of this component.
|
org.apache.commons.collections4.bag |
Modifier and Type | Method and Description |
---|---|
static <E> SortedBag<E> |
BagUtils.emptySortedBag()
Get an empty
SortedBag . |
static <E> SortedBag<E> |
BagUtils.predicatedSortedBag(SortedBag<E> bag,
Predicate<? super E> predicate)
Returns a predicated (validating) sorted bag backed by the given sorted
bag.
|
static <E> SortedBag<E> |
BagUtils.synchronizedSortedBag(SortedBag<E> bag)
Returns a synchronized (thread-safe) sorted bag backed by the given
sorted bag.
|
static <E> SortedBag<E> |
BagUtils.transformingSortedBag(SortedBag<E> bag,
Transformer<? super E,? extends E> transformer)
Returns a transformed sorted bag backed by the given bag.
|
static <E> SortedBag<E> |
BagUtils.unmodifiableSortedBag(SortedBag<E> bag)
Returns an unmodifiable view of the given sorted bag.
|
Modifier and Type | Method and Description |
---|---|
static <E> SortedBag<E> |
BagUtils.predicatedSortedBag(SortedBag<E> bag,
Predicate<? super E> predicate)
Returns a predicated (validating) sorted bag backed by the given sorted
bag.
|
static <E> SortedBag<E> |
BagUtils.synchronizedSortedBag(SortedBag<E> bag)
Returns a synchronized (thread-safe) sorted bag backed by the given
sorted bag.
|
static <E> SortedBag<E> |
BagUtils.transformingSortedBag(SortedBag<E> bag,
Transformer<? super E,? extends E> transformer)
Returns a transformed sorted bag backed by the given bag.
|
static <E> SortedBag<E> |
BagUtils.unmodifiableSortedBag(SortedBag<E> bag)
Returns an unmodifiable view of the given sorted bag.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractSortedBagDecorator<E>
Decorates another
SortedBag to provide additional behaviour. |
class |
CollectionSortedBag<E>
Decorates another
SortedBag to comply with the Collection contract. |
class |
PredicatedSortedBag<E>
Decorates another
SortedBag to validate that additions
match a specified predicate. |
class |
SynchronizedSortedBag<E>
Decorates another
SortedBag to synchronize its behaviour
for a multi-threaded environment. |
class |
TransformedSortedBag<E>
Decorates another
SortedBag to transform objects that are added. |
class |
TreeBag<E>
|
class |
UnmodifiableSortedBag<E>
Decorates another
SortedBag to ensure it can't be altered. |
Modifier and Type | Method and Description |
---|---|
static <E> SortedBag<E> |
CollectionSortedBag.collectionSortedBag(SortedBag<E> bag)
Factory method to create a sorted bag that complies to the Collection contract.
|
protected SortedBag<E> |
PredicatedSortedBag.decorated()
Gets the decorated sorted bag.
|
protected SortedBag<E> |
AbstractSortedBagDecorator.decorated()
Gets the bag being decorated.
|
protected SortedBag<E> |
TransformedSortedBag.getSortedBag()
Gets the decorated bag.
|
protected SortedBag<E> |
SynchronizedSortedBag.getSortedBag()
Gets the bag being decorated.
|
static <E> SortedBag<E> |
UnmodifiableSortedBag.unmodifiableSortedBag(SortedBag<E> bag)
Factory method to create an unmodifiable bag.
|
Modifier and Type | Method and Description |
---|---|
static <E> SortedBag<E> |
CollectionSortedBag.collectionSortedBag(SortedBag<E> bag)
Factory method to create a sorted bag that complies to the Collection contract.
|
static <E> PredicatedSortedBag<E> |
PredicatedSortedBag.predicatedSortedBag(SortedBag<E> bag,
Predicate<? super E> predicate)
Factory method to create a predicated (validating) bag.
|
static <E> SynchronizedSortedBag<E> |
SynchronizedSortedBag.synchronizedSortedBag(SortedBag<E> bag)
Factory method to create a synchronized sorted bag.
|
static <E> TransformedSortedBag<E> |
TransformedSortedBag.transformedSortedBag(SortedBag<E> bag,
Transformer<? super E,? extends E> transformer)
Factory method to create a transforming sorted bag that will transform
existing contents of the specified sorted bag.
|
static <E> TransformedSortedBag<E> |
TransformedSortedBag.transformingSortedBag(SortedBag<E> bag,
Transformer<? super E,? extends E> transformer)
Factory method to create a transforming sorted bag.
|
static <E> SortedBag<E> |
UnmodifiableSortedBag.unmodifiableSortedBag(SortedBag<E> bag)
Factory method to create an unmodifiable bag.
|
Constructor and Description |
---|
AbstractSortedBagDecorator(SortedBag<E> bag)
Constructor that wraps (not copies).
|
CollectionSortedBag(SortedBag<E> bag)
Constructor that wraps (not copies).
|
PredicatedSortedBag(SortedBag<E> bag,
Predicate<? super E> predicate)
Constructor that wraps (not copies).
|
SynchronizedSortedBag(SortedBag<E> bag)
Constructor that wraps (not copies).
|
TransformedSortedBag(SortedBag<E> bag,
Transformer<? super E,? extends E> transformer)
Constructor that wraps (not copies).
|
Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.