1718192021222324
} @Override public void addDevice(Host item) { if (item != null && devices.add(item)) { notifyListeners(new ModelEvent(this, new DeviceEvent(item, DeviceEvent.Type.DEVICE_ADDED))); } }
4950515253545556
} @Override public void removeDevice(Device item) { if (devices.remove(item)) { notifyListeners(new ModelEvent(this, new DeviceEvent(item, DeviceEvent.Type.DEVICE_REMOVED))); } }