Bag - Methods

add This method adds an element to the bag.
add - hint This method adds an element to the bag with an insertion hint.
addAll This method adds a specified collection to the bag.
clear This method removes all the elements of the bag.
comparer This method gets the bag comparer.
contains This method determines if an element resides in the bag.
containsAll This method determines if all elements of a collection are in the bag.
equals This method determines if two bags are equal.
get - key This method returns an array containing the specified key range.
get - index This method offsets into a given key range to locate an element.
iterator This method returns an iterator for the bag.
hashCode This method returns the hash code of the bag.
readObject This method reads a bag from a stream.
remove - key This method removes a key range from the bag.
remove - predicate This method removes elements within a key range (predicated).
removeAll This method removes all entries in a given collection.
removeIf This method removes all entries satisfying a predicate.
retainAll This method retains all elements in a specified collection.
select This method searches a key range for all elements that satisfy a predicate.
set This method updates an item in a key range that satisfies a predicate.
size This method returns a count of the number of elements in the bag.
size - key This method returns the number of elements in a key range.
toString This method generates a string representation of the bag.
writeObject This method writes a bag to a stream.