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

com.aizuda.snailjob.server.web.service.convert.GroupConfigConverterImpl Maven / Gradle / Ivy

package com.aizuda.snailjob.server.web.service.convert;

import com.aizuda.snailjob.server.web.model.request.GroupConfigRequestVO;
import com.aizuda.snailjob.template.datasource.persistence.po.GroupConfig;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-05-29T12:27:56+0800",
    comments = "version: 1.5.3.Final, compiler: javac, environment: Java 17.0.10 (Amazon.com Inc.)"
)
public class GroupConfigConverterImpl implements GroupConfigConverter {

    @Override
    public GroupConfig convert(GroupConfigRequestVO groupConfigRequestVO) {
        if ( groupConfigRequestVO == null ) {
            return null;
        }

        GroupConfig groupConfig = new GroupConfig();

        groupConfig.setGroupName( groupConfigRequestVO.getGroupName() );
        groupConfig.setGroupStatus( groupConfigRequestVO.getGroupStatus() );
        groupConfig.setGroupPartition( groupConfigRequestVO.getGroupPartition() );
        groupConfig.setIdGeneratorMode( groupConfigRequestVO.getIdGeneratorMode() );
        groupConfig.setInitScene( groupConfigRequestVO.getInitScene() );
        groupConfig.setToken( groupConfigRequestVO.getToken() );
        groupConfig.setDescription( groupConfigRequestVO.getDescription() );

        return groupConfig;
    }

    @Override
    public List convertList(List groupConfigRequestVOS) {
        if ( groupConfigRequestVOS == null ) {
            return null;
        }

        List list = new ArrayList( groupConfigRequestVOS.size() );
        for ( GroupConfigRequestVO groupConfigRequestVO : groupConfigRequestVOS ) {
            list.add( convert( groupConfigRequestVO ) );
        }

        return list;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy