2024-01-04 12:10:36 +01:00
|
|
|
|
|
|
|
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:10:36 +01:00
|
|
|
|
2024-01-04 12:17:28 +01:00
|
|
|
public List<String> get(String key) {
|
2024-01-04 12:10:36 +01:00
|
|
|
|
2024-01-04 12:17:28 +01:00
|
|
|
if (super.get(key) == null) {
|
|
|
|
return new ArrayList<>();
|
|
|
|
}
|
|
|
|
return super.get(key);
|
|
|
|
}
|
2024-01-04 12:10:36 +01:00
|
|
|
}
|