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

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

There is a newer version: 2.3.18
Show newest version
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-11-17T15:37:28+0200",

    comments = "version: 1.1.0.Final, compiler: javac, environment: Java 1.8.0_151 (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