improve api
This commit is contained in:
parent
519244a2ea
commit
81abe26cda
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue