improve api

This commit is contained in:
Ken Stevens 2021-09-08 20:08:06 -04:00
parent 519244a2ea
commit 81abe26cda
2 changed files with 7 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class ResourceVersionMap {
public static ResourceVersionMap fromResourcePersistentIds(List<ResourcePersistentId> theResourcePersistentIds) {
ResourceVersionMap retval = new ResourceVersionMap();
theResourcePersistentIds.forEach(resource -> retval.add(resource.getAssociatedResourceId()));
theResourcePersistentIds.forEach(resourcePersistentId -> retval.add(resourcePersistentId.getAssociatedResourceId()));
return retval;
}

View File

@ -125,4 +125,10 @@ public class ResourcePersistentId {
}
return retVal;
}
public static ResourcePersistentId fromIIdType(IIdType theId) {
ResourcePersistentId retval = new ResourcePersistentId(theId);
retval.setAssociatedResourceId(theId);
return retval;
}
}