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

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

The newest version!
package com.eurodyn.qlack2.webdesktop.impl.mappers;

import com.eurodyn.qlack2.fuse.lexicon.api.dto.LanguageDTO;

import com.eurodyn.qlack2.webdesktop.api.dto.LexiconLanguageDTO;

import java.util.ArrayList;

import java.util.List;

import javax.annotation.Generated;

@Generated(

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

    date = "2020-06-18T15:52:28+0000",

    comments = "version: 1.1.0.Final, compiler: javac, environment: Java 1.8.0_252 (Private Build)"

)

public class LanguageDTOMapperImpl implements LanguageDTOMapper {

    @Override

    public LexiconLanguageDTO toLexiconLanguageDTO(LanguageDTO dto) {

        if ( dto == null ) {

            return null;
        }

        LexiconLanguageDTO lexiconLanguageDTO = new LexiconLanguageDTO();

        lexiconLanguageDTO.setId( dto.getId() );

        lexiconLanguageDTO.setName( dto.getName() );

        lexiconLanguageDTO.setLocale( dto.getLocale() );

        lexiconLanguageDTO.setActive( dto.isActive() );

        return lexiconLanguageDTO;
    }

    @Override

    public List toLexiconLanguageDTO(List dto) {

        if ( dto == null ) {

            return null;
        }

        List list = new ArrayList();

        for ( LanguageDTO languageDTO : dto ) {

            list.add( toLexiconLanguageDTO( languageDTO ) );
        }

        return list;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy