Uses of Interface
org.apache.commons.collections.Bag
Packages that use Bag
Package
Description
This package contains the interfaces and utilities shared across all the subpackages of this component.
-
Uses of Bag in org.apache.commons.collections
Subinterfaces of Bag in org.apache.commons.collectionsModifier and TypeInterfaceDescriptioninterfaceDefines a type ofBagthat maintains a sorted order among its unique representative members.Classes in org.apache.commons.collections that implement BagModifier and TypeClassDescriptionclassDeprecated.Moved to bag subpackage as AbstractMapBag.classDeprecated.Moved to bag subpackage and rewritten internally.classDeprecated.Moved to bag subpackage and rewritten internally.Fields in org.apache.commons.collections declared as BagModifier and TypeFieldDescriptionstatic final BagBagUtils.EMPTY_BAGAn empty unmodifiable bag.static final BagBagUtils.EMPTY_SORTED_BAGAn empty unmodifiable sorted bag.Methods in org.apache.commons.collections that return BagModifier and TypeMethodDescriptionstatic BagBagUtils.predicatedBag(Bag bag, Predicate predicate) Returns a predicated (validating) bag backed by the given bag.static BagBagUtils.synchronizedBag(Bag bag) Returns a synchronized (thread-safe) bag backed by the given bag.static BagBagUtils.transformedBag(Bag bag, Transformer transformer) Returns a transformed bag backed by the given bag.static BagReturns a typed bag backed by the given bag.static BagBagUtils.unmodifiableBag(Bag bag) Returns an unmodifiable view of the given bag.Methods in org.apache.commons.collections with parameters of type BagModifier and TypeMethodDescriptionbooleanDefaultMapBag.containsAll(Bag other) Deprecated.Returnstrueif the bag contains all elements in the given collection, respecting cardinality.static BagBagUtils.predicatedBag(Bag bag, Predicate predicate) Returns a predicated (validating) bag backed by the given bag.booleanDeprecated.Remove any members of the bag that are not in the given bag, respecting cardinality.static BagBagUtils.synchronizedBag(Bag bag) Returns a synchronized (thread-safe) bag backed by the given bag.static BagBagUtils.transformedBag(Bag bag, Transformer transformer) Returns a transformed bag backed by the given bag.static BagReturns a typed bag backed by the given bag.static BagBagUtils.unmodifiableBag(Bag 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 BagModifier and TypeClassDescriptionclassDecorates anotherBagto provide additional behaviour.classAbstract implementation of theBaginterface to simplify the creation of subclass implementations.classDecorates anotherSortedBagto provide additional behaviour.classImplementsBag, using aHashMapto provide the data storage.classDecorates anotherBagto validate that additions match a specified predicate.classDecorates anotherSortedBagto validate that additions match a specified predicate.classDecorates anotherBagto synchronize its behaviour for a multi-threaded environment.classDecorates anotherSortedBagto synchronize its behaviour for a multi-threaded environment.classDecorates anotherBagto transform objects that are added.classDecorates anotherSortedBagto transform objects that are added.classImplementsSortedBag, using aTreeMapto provide the data storage.final classDecorates anotherBagto ensure it can't be altered.final classDecorates anotherSortedBagto ensure it can't be altered.Methods in org.apache.commons.collections.bag that return BagModifier and TypeMethodDescriptionstatic BagFactory method to create a predicated (validating) bag.static BagFactory method to create a synchronized bag.static BagTransformedBag.decorate(Bag bag, Transformer transformer) Factory method to create a transforming bag.static BagFactory method to create a typed bag.static BagFactory method to create an unmodifiable bag.protected BagAbstractBagDecorator.getBag()Gets the bag being decorated.protected BagPredicatedBag.getBag()Gets the decorated bag.protected BagSynchronizedBag.getBag()Gets the bag being decorated.protected BagTransformedBag.getBag()Gets the decorated bag.Methods in org.apache.commons.collections.bag with parameters of type BagModifier and TypeMethodDescriptionstatic BagFactory method to create a predicated (validating) bag.static BagFactory method to create a synchronized bag.static BagTransformedBag.decorate(Bag bag, Transformer transformer) Factory method to create a transforming bag.static BagFactory method to create a typed bag.static BagFactory method to create an unmodifiable bag.Constructors in org.apache.commons.collections.bag with parameters of type BagModifierConstructorDescriptionprotectedAbstractBagDecorator(Bag bag) Constructor that wraps (not copies).protectedPredicatedBag(Bag bag, Predicate predicate) Constructor that wraps (not copies).protectedSynchronizedBag(Bag bag) Constructor that wraps (not copies).protectedSynchronizedBag(Bag bag, Object lock) Constructor that wraps (not copies).protectedSynchronizedSortedBag(Bag bag, Object lock) Constructor that wraps (not copies).protectedTransformedBag(Bag bag, Transformer transformer) Constructor that wraps (not copies).