use of org.ovirt.engine.api.v3.types.V3ProfileDetail in project ovirt-engine by oVirt.
the class V3ProfileDetailInAdapter method adapt.
@Override
public ProfileDetail adapt(V3ProfileDetail from) {
ProfileDetail to = new ProfileDetail();
if (from.isSetBlockStatistic()) {
to.setBlockStatistics(new BlockStatistics());
to.getBlockStatistics().getBlockStatistics().addAll(adaptIn(from.getBlockStatistic()));
}
if (from.isSetDuration()) {
to.setDuration(from.getDuration());
}
if (from.isSetFopStatistic()) {
to.setFopStatistics(new FopStatistics());
to.getFopStatistics().getFopStatistics().addAll(adaptIn(from.getFopStatistic()));
}
if (from.isSetProfileType()) {
to.setProfileType(from.getProfileType());
}
if (from.isSetStatistic()) {
to.setStatistics(new Statistics());
to.getStatistics().getStatistics().addAll(adaptIn(from.getStatistic()));
}
return to;
}
Aggregations