Bag.clear(): just make new array instead of filling with nulls. is faster, no looping, is native and is null inizialized
removed import
Suppress unchecked warnings on Bag#clear, Bag now implements "Iterable", added Overrides annotations to implementations, fixed small error in javadoc.
Added documentation for Bag and ImmutableBag. Fixed formatting (indent, whitespace, javadoc) inconsistency. Amend from last commit: Bag already implemented Iterable. doh.
Use if-clause instead of try-catch in BagIterator#next() since the situation is in our control and has better performance as well. Added curly braces to if-clause in BagIterator#remove().
Merge branch 'bag-performance'
javadoc for Bag#sort()
Merge pull request #6 from lopho/master

small bag perfomance improvements and documentation