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

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

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 = "2017-08-29T18:26:49+0300",

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

)

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