cn.sliew.carp.module.scheduler.service.convert.ScheduleJobGroupConvertImpl Maven / Gradle / Ivy
The newest version!
package cn.sliew.carp.module.scheduler.service.convert;
import cn.sliew.carp.module.scheduler.repository.entity.ScheduleJobGroup;
import cn.sliew.carp.module.scheduler.service.dto.ScheduleJobGroupDTO;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-11-16T14:39:54+0000",
comments = "version: 1.4.2.Final, compiler: javac, environment: Java 17.0.13 (Eclipse Adoptium)"
)
public class ScheduleJobGroupConvertImpl implements ScheduleJobGroupConvert {
@Override
public ScheduleJobGroup toDo(ScheduleJobGroupDTO arg0) {
if ( arg0 == null ) {
return null;
}
ScheduleJobGroup scheduleJobGroup = new ScheduleJobGroup();
scheduleJobGroup.setId( arg0.getId() );
scheduleJobGroup.setCreator( arg0.getCreator() );
scheduleJobGroup.setCreateTime( arg0.getCreateTime() );
scheduleJobGroup.setEditor( arg0.getEditor() );
scheduleJobGroup.setUpdateTime( arg0.getUpdateTime() );
scheduleJobGroup.setNamespace( arg0.getNamespace() );
scheduleJobGroup.setName( arg0.getName() );
scheduleJobGroup.setRemark( arg0.getRemark() );
return scheduleJobGroup;
}
@Override
public ScheduleJobGroupDTO toDto(ScheduleJobGroup arg0) {
if ( arg0 == null ) {
return null;
}
ScheduleJobGroupDTO scheduleJobGroupDTO = new ScheduleJobGroupDTO();
scheduleJobGroupDTO.setId( arg0.getId() );
scheduleJobGroupDTO.setCreator( arg0.getCreator() );
scheduleJobGroupDTO.setCreateTime( arg0.getCreateTime() );
scheduleJobGroupDTO.setEditor( arg0.getEditor() );
scheduleJobGroupDTO.setUpdateTime( arg0.getUpdateTime() );
scheduleJobGroupDTO.setNamespace( arg0.getNamespace() );
scheduleJobGroupDTO.setName( arg0.getName() );
scheduleJobGroupDTO.setRemark( arg0.getRemark() );
return scheduleJobGroupDTO;
}
@Override
public List toDo(List arg0) {
if ( arg0 == null ) {
return null;
}
List list = new ArrayList( arg0.size() );
for ( ScheduleJobGroupDTO scheduleJobGroupDTO : arg0 ) {
list.add( toDo( scheduleJobGroupDTO ) );
}
return list;
}
@Override
public List toDto(List arg0) {
if ( arg0 == null ) {
return null;
}
List list = new ArrayList( arg0.size() );
for ( ScheduleJobGroup scheduleJobGroup : arg0 ) {
list.add( toDto( scheduleJobGroup ) );
}
return list;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy