# Uses of Interface
org.apache.commons.collections4.SortedBag

Packages that use SortedBag
Package
Description
org.apache.commons.collections4
Interfaces and utilities shared across all packages.
org.apache.commons.collections4.bag
Implements the `Bag` and `SortedBag` interfaces.

- ## Uses of SortedBag in org.apache.commons.collections4

  Methods in org.apache.commons.collections4 that return SortedBag
  Modifier and Type
  Method
  Description
  `static <E> SortedBag<E>`
  BagUtils.`emptySortedBag()`
  Deprecated.
  Gets an empty `SortedBag`.
  `static <E> SortedBag<E>`
  BagUtils.`predicatedSortedBag(SortedBag<E> bag, Predicate<? super E> predicate)`
  Deprecated.
  Returns a predicated (validating) sorted bag backed by the given sorted bag.
  `static <E> SortedBag<E>`
  BagUtils.`synchronizedSortedBag(SortedBag<E> bag)`
  Deprecated.
  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)`
  Deprecated.
  Returns a transformed sorted bag backed by the given bag.
  `static <E> SortedBag<E>`
  BagUtils.`unmodifiableSortedBag(SortedBag<E> bag)`
  Deprecated.
  Returns an unmodifiable view of the given sorted bag.
  Methods in org.apache.commons.collections4 with parameters of type SortedBag
  Modifier and Type
  Method
  Description
  `static <E> SortedBag<E>`
  BagUtils.`predicatedSortedBag(SortedBag<E> bag, Predicate<? super E> predicate)`
  Deprecated.
  Returns a predicated (validating) sorted bag backed by the given sorted bag.
  `static <E> SortedBag<E>`
  BagUtils.`synchronizedSortedBag(SortedBag<E> bag)`
  Deprecated.
  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)`
  Deprecated.
  Returns a transformed sorted bag backed by the given bag.
  `static <E> SortedBag<E>`
  BagUtils.`unmodifiableSortedBag(SortedBag<E> bag)`
  Deprecated.
  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 SortedBag
  Modifier and Type
  Class
  Description
  `class`
  `AbstractSortedBagDecorator<E>`
  Deprecated.
  Since 4.6.0, use `AbstractSortedMultiSetDecorator` instead.
  `final class`
  `CollectionSortedBag<E>`
  Deprecated.
  Since 4.6.0, no longer needed; a `SortedMultiSet` already complies with the `Collection` contract.
  `class`
  `PredicatedSortedBag<E>`
  Deprecated.
  Since 4.6.0, use `PredicatedSortedMultiSet` instead.
  `class`
  `SynchronizedSortedBag<E>`
  Deprecated.
  Since 4.6.0, use `SynchronizedSortedMultiSet` instead.
  `class`
  `TransformedSortedBag<E>`
  Deprecated.
  Since 4.6.0, use `TransformedSortedMultiSet` instead.
  `class`
  `TreeBag<E>`
  Deprecated.
  Since 4.6.0, use `TreeMultiSet` instead.
  `final class`
  `UnmodifiableSortedBag<E>`
  Deprecated.
  Since 4.6.0, use `UnmodifiableSortedMultiSet` instead.
  Methods in org.apache.commons.collections4.bag that return SortedBag
  Modifier and Type
  Method
  Description
  `static <E> SortedBag<E>`
  CollectionSortedBag.`collectionSortedBag(SortedBag<E> bag)`
  Deprecated.
  Factory method to create a sorted bag that complies to the Collection contract.
  `protected SortedBag<E>`
  AbstractSortedBagDecorator.`decorated()`
  Deprecated.
  Gets the bag being decorated.
  `protected SortedBag<E>`
  PredicatedSortedBag.`decorated()`
  Deprecated.
  Gets the decorated sorted bag.
  `protected SortedBag<E>`
  SynchronizedSortedBag.`getSortedBag()`
  Deprecated.
  Gets the bag being decorated.
  `protected SortedBag<E>`
  TransformedSortedBag.`getSortedBag()`
  Deprecated.
  Gets the decorated bag.
  `static <E> SortedBag<E>`
  UnmodifiableSortedBag.`unmodifiableSortedBag(SortedBag<E> bag)`
  Deprecated.
  Factory method to create an unmodifiable bag.
  Methods in org.apache.commons.collections4.bag with parameters of type SortedBag
  Modifier and Type
  Method
  Description
  `static <E> SortedBag<E>`
  CollectionSortedBag.`collectionSortedBag(SortedBag<E> bag)`
  Deprecated.
  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)`
  Deprecated.
  Factory method to create a predicated (validating) bag.
  `static <E> SynchronizedSortedBag<E>`
  SynchronizedSortedBag.`synchronizedSortedBag(SortedBag<E> bag)`
  Deprecated.
  Factory method to create a synchronized sorted bag.
  `static <E> TransformedSortedBag<E>`
  TransformedSortedBag.`transformedSortedBag(SortedBag<E> bag, Transformer<? super E,? extends E> transformer)`
  Deprecated.
  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)`
  Deprecated.
  Factory method to create a transforming sorted bag.
  `static <E> SortedBag<E>`
  UnmodifiableSortedBag.`unmodifiableSortedBag(SortedBag<E> bag)`
  Deprecated.
  Factory method to create an unmodifiable bag.
  Constructors in org.apache.commons.collections4.bag with parameters of type SortedBag
  Modifier
  Constructor
  Description
  `protected`
  `AbstractSortedBagDecorator(SortedBag<E> bag)`
  Deprecated.
  Constructor that wraps (not copies).
  ``
  `CollectionSortedBag(SortedBag<E> bag)`
  Deprecated.
  Constructor that wraps (not copies).
  `protected`
  `PredicatedSortedBag(SortedBag<E> bag, Predicate<? super E> predicate)`
  Deprecated.
  Constructor that wraps (not copies).
  `protected`
  `SynchronizedSortedBag(SortedBag<E> bag)`
  Deprecated.
  Constructor that wraps (not copies).
  `protected`
  `TransformedSortedBag(SortedBag<E> bag, Transformer<? super E,? extends E> transformer)`
  Deprecated.
  Constructor that wraps (not copies).