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

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

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

import io.hyperfoil.tools.horreum.api.data.Extractor;
import io.hyperfoil.tools.horreum.entity.data.ExtractorDAO;

public class ExtractorMapper {

    public static Extractor from(ExtractorDAO e) {
        Extractor dto = new Extractor();
        dto.name = e.name;
        dto.isArray = e.isArray;
        dto.jsonpath = e.jsonpath;

        return dto;
    }

    public static ExtractorDAO to(Extractor dto) {
        ExtractorDAO e = new ExtractorDAO();
        e.name = dto.name;
        e.isArray = dto.isArray;
        e.jsonpath = dto.jsonpath;

        return e;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy