@Override
	public Object[] toArray() {
		Object[] array = new Object[keys.size()];
		try (LockHold hold = LockHold.lock(lock.readLock())) {
			int i = 0;
			for (long k : keys) {
				array[i++] = store.objects.get(k);
			}
		}
		catch (IOException e) {
			errHandler.dbError(e);
		}
		return array;
	}
This provides the implementation of {@link DBCachedObjectIndex#get(Object)}

@param <T> the type of objects in the store
Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/database/DBCachedObjectStoreFoundKeysValueCollection.java