com.bbn.bue.common.collections.KeyValueSink Maven / Gradle / Ivy
The newest version!
package com.bbn.bue.common.collections;
import java.util.Map;
/**
* Something which consumes mappings between objects. This is mostly for eliding the difference
* between {@link java.util.Map}s and {@link com.google.common.collect.Multimap}s in some cases.
*/
public interface KeyValueSink {
KeyValueSink put(K key, V value);
KeyValueSink put(Map.Entry entry);
KeyValueSink putAll(Iterable extends Map.Entry extends K, ? extends V>> entries);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy