Uses of Interface
org.apache.commons.collections.Bag
-
Packages that use Bag 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 -
-
Uses of Bag in org.apache.commons.collections
Subinterfaces of Bag in org.apache.commons.collections Modifier and Type Interface Description interfaceSortedBagDefines a type ofBagthat maintains a sorted order among its unique representative members.Classes in org.apache.commons.collections that implement Bag Modifier and Type Class Description classDefaultMapBagDeprecated.Moved to bag subpackage as AbstractMapBag.classHashBagDeprecated.Moved to bag subpackage and rewritten internally.classTreeBagDeprecated.Moved to bag subpackage and rewritten internally.Fields in org.apache.commons.collections declared as Bag Modifier and Type Field Description static BagBagUtils. EMPTY_BAGAn empty unmodifiable bag.static BagBagUtils. EMPTY_SORTED_BAGAn empty unmodifiable sorted bag.Methods in org.apache.commons.collections that return Bag Modifier and Type Method Description static 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 BagBagUtils. typedBag(Bag bag, Class type)Returns 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 Bag Modifier and Type Method Description booleanDefaultMapBag. 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.booleanDefaultMapBag. retainAll(Bag other)Deprecated.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 BagBagUtils. typedBag(Bag bag, Class type)Returns 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 Bag Modifier and Type Class Description classAbstractBagDecoratorDecorates anotherBagto provide additional behaviour.classAbstractMapBagAbstract implementation of theBaginterface to simplify the creation of subclass implementations.classAbstractSortedBagDecoratorDecorates anotherSortedBagto provide additional behaviour.classHashBagImplementsBag, using aHashMapto provide the data storage.classPredicatedBagDecorates anotherBagto validate that additions match a specified predicate.classPredicatedSortedBagDecorates anotherSortedBagto validate that additions match a specified predicate.classSynchronizedBagDecorates anotherBagto synchronize its behaviour for a multi-threaded environment.classSynchronizedSortedBagDecorates anotherSortedBagto synchronize its behaviour for a multi-threaded environment.classTransformedBagDecorates anotherBagto transform objects that are added.classTransformedSortedBagDecorates anotherSortedBagto transform objects that are added.classTreeBagImplementsSortedBag, using aTreeMapto provide the data storage.classUnmodifiableBagDecorates anotherBagto ensure it can't be altered.classUnmodifiableSortedBagDecorates anotherSortedBagto ensure it can't be altered.Methods in org.apache.commons.collections.bag that return Bag Modifier and Type Method Description static BagPredicatedBag. decorate(Bag bag, Predicate predicate)Factory method to create a predicated (validating) bag.static BagSynchronizedBag. decorate(Bag bag)Factory method to create a synchronized bag.static BagTransformedBag. decorate(Bag bag, Transformer transformer)Factory method to create a transforming bag.static BagTypedBag. decorate(Bag bag, Class type)Factory method to create a typed bag.static BagUnmodifiableBag. decorate(Bag bag)Factory 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 Bag Modifier and Type Method Description static BagPredicatedBag. decorate(Bag bag, Predicate predicate)Factory method to create a predicated (validating) bag.static BagSynchronizedBag. decorate(Bag bag)Factory method to create a synchronized bag.static BagTransformedBag. decorate(Bag bag, Transformer transformer)Factory method to create a transforming bag.static BagTypedBag. decorate(Bag bag, Class type)Factory method to create a typed bag.static BagUnmodifiableBag. decorate(Bag bag)Factory method to create an unmodifiable bag.Constructors in org.apache.commons.collections.bag with parameters of type Bag Constructor Description AbstractBagDecorator(Bag bag)Constructor that wraps (not copies).PredicatedBag(Bag bag, Predicate predicate)Constructor that wraps (not copies).SynchronizedBag(Bag bag)Constructor that wraps (not copies).SynchronizedBag(Bag bag, Object lock)Constructor that wraps (not copies).SynchronizedSortedBag(Bag bag, Object lock)Constructor that wraps (not copies).TransformedBag(Bag bag, Transformer transformer)Constructor that wraps (not copies).
-