All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.bagofwords.util.MappedLists Maven / Gradle / Ivy

Go to download

Utility classes that are used in the count-db project and other bow-* projects

There is a newer version: 1.2.0
Show newest version
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