class StorageUnitHelper {

    public List<Integer> getStorageUnitIds(List<StorageUnitAvailabilityDto> storageUnitAvailabilityDtos)
    {
        List<Integer> storageUnitIds = new ArrayList<>(storageUnitAvailabilityDtos.size());

        for (StorageUnitAvailabilityDto storageUnitAvailabilityDto : storageUnitAvailabilityDtos)
        {
            storageUnitIds.add(storageUnitAvailabilityDto.getStorageUnitId());
        }

        return storageUnitIds;
    }

}