size
Returns the number of elements in the multiset.
Note: this method does not return the number of distinct elements in the multiset, which is given by entrySet().size().
Returns the number of elements in the multiset.
Note: this method does not return the number of distinct elements in the multiset, which is given by entrySet().size().