private Watchdogs mapCollection(List<VmWatchdog> entities) { Watchdogs collection = new Watchdogs(); for (VmWatchdog entity : entities) { collection.getWatchdogs().add(addLinks(map(entity))); } return collection; }
private Watchdogs mapCollection(List<VmWatchdog> entities) { Watchdogs collection = new Watchdogs(); for (VmWatchdog entity : entities) { collection.getWatchdogs().add(addLinks(map(entity))); } return collection; }
private Watchdogs mapCollection(List<VmWatchdog> entities) { Watchdogs collection = new Watchdogs(); for (VmWatchdog entity : entities) { collection.getWatchdogs().add(addLinks(map(entity))); } return collection; }
@Override protected List<Watchdog> getCollection() { return collection.list().getWatchdogs(); }
@Override protected List<Watchdog> getCollection() { return collection.list().getWatchdogs(); }
@Override protected List<Watchdog> getCollection() { return collection.list().getWatchdogs(); }
@Override public Watchdogs adapt(V3WatchDogs from) { Watchdogs to = new Watchdogs(); if (from.isSetActions()) { to.setActions(adaptIn(from.getActions())); } if (from.isSetActive()) { to.setActive(from.getActive()); } if (from.isSetSize()) { to.setSize(from.getSize()); } if (from.isSetTotal()) { to.setTotal(from.getTotal()); } to.getWatchdogs().addAll(adaptIn(from.getWatchDogs())); return to; } }
@Override public V3WatchDogs adapt(Watchdogs from) { V3WatchDogs to = new V3WatchDogs(); 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.getWatchDogs().addAll(adaptOut(from.getWatchdogs())); return to; } }
to.getWatchdogs().getWatchDogs().addAll(adaptOut(from.getWatchdogs().getWatchdogs()));
to.getWatchdogs().getWatchDogs().addAll(adaptOut(from.getWatchdogs().getWatchdogs()));
to.getWatchdogs().getWatchdogs().addAll(adaptIn(from.getWatchdogs().getWatchDogs()));