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

com.eurodyn.qlack2.webdesktop.impl.mappers.QFSettingDTOMapperImpl Maven / Gradle / Ivy

package com.eurodyn.qlack2.webdesktop.impl.mappers;

import com.eurodyn.qlack2.fuse.settings.api.dto.SettingDTO;

import java.util.ArrayList;

import java.util.List;

import javax.annotation.Generated;

@Generated(

    value = "org.mapstruct.ap.MappingProcessor",

    date = "2017-08-29T18:26:49+0300",

    comments = "version: 1.1.0.Final, compiler: javac, environment: Java 1.8.0_144 (Oracle Corporation)"

)

public class QFSettingDTOMapperImpl implements QFSettingDTOMapper {

    @Override

    public com.eurodyn.qlack2.webdesktop.api.dto.SettingDTO toSettingDTO(SettingDTO dto) {

        if ( dto == null ) {

            return null;
        }

        com.eurodyn.qlack2.webdesktop.api.dto.SettingDTO settingDTO = new com.eurodyn.qlack2.webdesktop.api.dto.SettingDTO();

        settingDTO.setKey( dto.getKey() );

        settingDTO.setVal( dto.getVal() );

        settingDTO.setGroup( dto.getGroup() );

        settingDTO.setSensitive( dto.isSensitive() );

        return settingDTO;
    }

    @Override

    public List toSettingDTO(List dtoList) {

        if ( dtoList == null ) {

            return null;
        }

        List list = new ArrayList();

        for ( SettingDTO settingDTO : dtoList ) {

            list.add( toSettingDTO( settingDTO ) );
        }

        return list;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy