22 lines
377 B
Java
22 lines
377 B
Java
|
|
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>> {
|
|
|
|
public CommunityEntityMap() {
|
|
super();
|
|
}
|
|
|
|
public List<String> get(String key) {
|
|
|
|
if (super.get(key) == null) {
|
|
return new ArrayList<>();
|
|
}
|
|
return super.get(key);
|
|
}
|
|
}
|