Search in sources :

Example 1 with V3FopStatistic

use of org.ovirt.engine.api.v3.types.V3FopStatistic in project ovirt-engine by oVirt.

the class V3FopStatisticInAdapter method adapt.

public FopStatistic adapt(V3FopStatistic from) {
    FopStatistic to = new FopStatistic();
    if (from.isSetName()) {
        to.setName(from.getName());
    }
    if (from.isSetStatistic()) {
        to.setStatistics(new Statistics());
        to.getStatistics().getStatistics().addAll(adaptIn(from.getStatistic()));
    }
    return to;
}
Also used : V3FopStatistic(org.ovirt.engine.api.v3.types.V3FopStatistic) FopStatistic(org.ovirt.engine.api.model.FopStatistic) Statistics(org.ovirt.engine.api.model.Statistics)

Aggregations

FopStatistic (org.ovirt.engine.api.model.FopStatistic)1 Statistics (org.ovirt.engine.api.model.Statistics)1 V3FopStatistic (org.ovirt.engine.api.v3.types.V3FopStatistic)1