edu.isi.nlp.collections.KeyValueSink Maven / Gradle / Ivy
The newest version!
package edu.isi.nlp.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.
*
* Note this unfortunately collides in name with {@link edu.isi.nlp.files.KeyValueSink}.
*/
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 - 2025 Weber Informatics LLC | Privacy Policy