![JAR search and dependency download from the Maven repository](/logo.png)
org.rx.bean.MultiValueMap Maven / Gradle / Ivy
package org.rx.bean;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.multimap.ArrayListValuedHashMap;
import java.util.List;
public class MultiValueMap extends ArrayListValuedHashMap {
private static final long serialVersionUID = 2045827206865943227L;
public V getFirst(K key) {
List vs = get(key);
if (CollectionUtils.isEmpty(vs)) {
return null;
}
return vs.get(0);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy