Spdx-Java-Library icon indicating copy to clipboard operation
Spdx-Java-Library copied to clipboard

Add API to return licenses as a map in addition to list

Open dwalluck opened this issue 1 year ago • 1 comments

I see that the license list is actually using a map internally, but the API returns a list Map::values(). Is it possible to add an API which also returns a Map with key String licenseId and value SpdxListedLicense? This would be more performant rather than having to recreate a map from the list.

dwalluck avatar May 02 '24 13:05 dwalluck

Sounds like a useful API - if you'd like to create a PR, I can review merge. Otherwise, I'll take a look at this after implementing the SPDX 3.0 support.

goneall avatar May 03 '24 00:05 goneall