Set Equate: show all matching names in each enum

This commit is contained in:
sollyucko 2021-11-09 22:10:54 -05:00 committed by dragonmacher
parent 42ca00b35d
commit 1da1c9fef3
2 changed files with 19 additions and 5 deletions

View file

@ -162,6 +162,23 @@ class EnumDB extends DataTypeDB implements Enum {
}
}
@Override
public String[] getNames(long value) {
lock.acquire();
try {
checkIsValid();
initializeIfNeeded();
List<String> list = valueMap.get(value);
if (list == null) {
return new String[0];
}
return list.toArray(new String[0]);
}
finally {
lock.release();
}
}
@Override
public boolean hasLanguageDependantLength() {
return false;