dhp-graph-dump/api/src/main/java/eu/dnetlib/dhp/communityapi/model/CommunityEntityMap.java

22 lines
377 B
Java
Raw Normal View History

package eu.dnetlib.dhp.communityapi.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class CommunityEntityMap extends HashMap<String, List<String>> {
2024-01-04 12:17:28 +01:00
public CommunityEntityMap() {
super();
}
2024-01-04 12:17:28 +01:00
public List<String> get(String key) {
2024-01-04 12:17:28 +01:00
if (super.get(key) == null) {
return new ArrayList<>();
}
return super.get(key);
}
}