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

io.hyperfoil.tools.horreum.mapper.ChangeDetectionMapper Maven / Gradle / Ivy

The newest version!
package io.hyperfoil.tools.horreum.mapper;

import io.hyperfoil.tools.horreum.api.alerting.ChangeDetection;
import io.hyperfoil.tools.horreum.entity.alerting.ChangeDetectionDAO;

public class ChangeDetectionMapper {

    public static ChangeDetection from(ChangeDetectionDAO cd) {
        return new ChangeDetection(cd.id, cd.model, cd.config);
    }

    public static ChangeDetectionDAO to(ChangeDetection dto) {
        ChangeDetectionDAO cd = new ChangeDetectionDAO();
        cd.id = dto.id;
        cd.model = dto.model;
        cd.config = dto.config;
        return cd;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy