All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.saphyra.randwo.item.service.NewLabelSaverService Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.github.saphyra.randwo.item.service;

import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;

import org.springframework.stereotype.Service;

import com.github.saphyra.randwo.label.service.create.CreateLabelService;
import lombok.RequiredArgsConstructor;

@Service
@RequiredArgsConstructor
public class NewLabelSaverService {
    private final CreateLabelService createLabelService;

    public List saveLabels(List newLabels) {
        return newLabels.stream()
            .map(createLabelService::createLabel)
            .collect(Collectors.toList());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy