Code example for Multiset

Methods: addAll

0
    } 
 
    @Override public Multiset<E> build(Class<? extends Multiset> implementationClass) {
        @SuppressWarnings("unchecked") 
        Multiset<E> multiset = (Multiset<E>) Classes.uncheckedInstantiate(implementationClass);
        multiset.addAll(elements);
        return multiset;
    } 
 
    @Override public <T extends Multiset<E>> T build(UnaryFunction<? super Iterable<E>, ? extends T> builderFunction) {
        return builderFunction.call(Collections.unmodifiableCollection(elements));
    } 
 
    @Override protected void handle(E element) {
        elements.add(element);
    } 
 
    @Override protected MultisetBuilder<E> updatedBuilder() { 
        return this;
    } 
Contextual code suggestions in your IDE  Get Codota for Java