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

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

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

import com.aizuda.snailjob.server.web.model.response.DashboardRetryLineResponseVO;
import com.aizuda.snailjob.template.datasource.persistence.dataobject.DashboardRetryLineResponseDO;
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 SceneQuantityRankResponseVOConverterImpl implements SceneQuantityRankResponseVOConverter {

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

        List list = new ArrayList( rankList.size() );
        for ( DashboardRetryLineResponseDO.Rank rank : rankList ) {
            list.add( rankToRank( rank ) );
        }

        return list;
    }

    protected DashboardRetryLineResponseVO.Rank rankToRank(DashboardRetryLineResponseDO.Rank rank) {
        if ( rank == null ) {
            return null;
        }

        DashboardRetryLineResponseVO.Rank rank1 = new DashboardRetryLineResponseVO.Rank();

        rank1.setName( rank.getName() );
        rank1.setTotal( rank.getTotal() );

        return rank1;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy