Uses of Interface
org.apache.commons.collections4.SortedBag
Packages that use SortedBag
Package
Description
This package contains the interfaces and utilities shared across all the subpackages of this component.
-
Uses of SortedBag in org.apache.commons.collections4
Methods in org.apache.commons.collections4 that return SortedBagModifier and TypeMethodDescriptionstatic <E> SortedBag
<E> BagUtils.emptySortedBag()
Get an emptySortedBag
.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.Methods in org.apache.commons.collections4 with parameters of type SortedBagModifier and TypeMethodDescriptionstatic <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. -
Uses of SortedBag in org.apache.commons.collections4.bag
Classes in org.apache.commons.collections4.bag that implement SortedBagModifier and TypeClassDescriptionclass
Decorates anotherSortedBag
to provide additional behaviour.final class
Decorates anotherSortedBag
to comply with the Collection contract.class
Decorates anotherSortedBag
to validate that additions match a specified predicate.class
Decorates anotherSortedBag
to synchronize its behaviour for a multi-threaded environment.class
Decorates anotherSortedBag
to transform objects that are added.class
TreeBag<E>
final class
Decorates anotherSortedBag
to ensure it can't be altered.Methods in org.apache.commons.collections4.bag that return SortedBagModifier and TypeMethodDescriptionstatic <E> SortedBag
<E> CollectionSortedBag.collectionSortedBag
(SortedBag<E> bag) Factory method to create a sorted bag that complies to the Collection contract.AbstractSortedBagDecorator.decorated()
Gets the bag being decorated.PredicatedSortedBag.decorated()
Gets the decorated sorted bag.SynchronizedSortedBag.getSortedBag()
Gets the bag being decorated.TransformedSortedBag.getSortedBag()
Gets the decorated bag.static <E> SortedBag
<E> UnmodifiableSortedBag.unmodifiableSortedBag
(SortedBag<E> bag) Factory method to create an unmodifiable bag.Methods in org.apache.commons.collections4.bag with parameters of type SortedBagModifier and TypeMethodDescriptionstatic <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.Constructors in org.apache.commons.collections4.bag with parameters of type SortedBagModifierConstructorDescriptionprotected
Constructor that wraps (not copies).CollectionSortedBag
(SortedBag<E> bag) Constructor that wraps (not copies).protected
PredicatedSortedBag
(SortedBag<E> bag, Predicate<? super E> predicate) Constructor that wraps (not copies).protected
SynchronizedSortedBag
(SortedBag<E> bag) Constructor that wraps (not copies).protected
TransformedSortedBag
(SortedBag<E> bag, Transformer<? super E, ? extends E> transformer) Constructor that wraps (not copies).private
UnmodifiableSortedBag
(SortedBag<E> bag) Constructor that wraps (not copies).