use of org.ovirt.engine.api.v3.types.V3Hosts in project ovirt-engine by oVirt.
the class V3HostsOutAdapter method adapt.
@Override
public V3Hosts adapt(Hosts from) {
V3Hosts to = new V3Hosts();
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getHosts().addAll(adaptOut(from.getHosts()));
return to;
}
Aggregations