
be.bagofwords.util.MappedLists Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bow-utils Show documentation
Show all versions of bow-utils Show documentation
Utility classes that are used in the count-db project and other bow-* projects
package be.bagofwords.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class MappedLists extends HashMap> {
@Override
public List get(Object key) {
List result = super.get(key);
if (result == null) {
result = new ArrayList<>();
put((S) key, result);
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy