Implement ItemDbProviders, pt 6

This commit is contained in:
md678685 2018-08-19 20:58:45 +01:00
parent de2298cf0a
commit dd9a0de98d
2 changed files with 10 additions and 0 deletions

View File

@ -59,6 +59,11 @@ public class FlatItemDbProvider extends ItemDbProvider {
return null;
}
@Override
public Collection<String> listNames() {
return Collections.unmodifiableSet(primaryNames.keySet());
}
@Override
public void rebuild(List<String> lines) {
String json = String.join("\n", lines);

View File

@ -114,6 +114,11 @@ public class LegacyItemDbProvider extends ItemDbProvider {
return retval;
}
@Override
public Collection<String> listNames() {
return primaryNames.values();
}
@Override
public boolean supportsLegacyIds() {
return true;