Code example for Multiset

Methods: addelementSet

0
        counts.add(event);
        total = counts.elementSet().size();
    } 
 
    public void add(T event, int i) {
        counts.add(event, i);
        total = counts.elementSet().size();
    } 
 
    public void addAll(Collection<T> events) {
        counts.addAll(events);
        total = counts.elementSet().size();
    } 
 
    public int count(T event) {
        return counts.count(event);
    } 
 
    @Override 
    public float prob(T event) {
Contextual code suggestions in your IDE  Get Codota for Java