@Test public void testWithIcon() { DeviceIdentityBuilder b = new DeviceIdentityBuilder(); DeviceIdentity di = b.withIcon(SimCapnometer.class, "co2.png").build(); Assert.assertNotNull(di.icon.image.userData); Assert.assertEquals(16134, di.icon.image.userData.size()); }
public DeviceIdentityBuilder withIcon(Object dev, String iconResourceName) { return withIcon(dev.getClass(), iconResourceName); }
DeviceIdentityBuilder { public DeviceIdentityBuilder withIcon(Object dev, String iconResourceName) { return withIcon(dev.getClass(), iconResourceName); } }
DeviceIdentityBuilder { public DeviceIdentityBuilder withIcon(Object dev, String iconResourceName) { return withIcon(dev.getClass(), iconResourceName); } DeviceIdentityBuilder();   DeviceIdentityBuilder(DeviceIdentity p); }
DeviceIdentityBuilder { public DeviceIdentityBuilder withIcon(Object dev, String iconResourceName) { return withIcon(dev.getClass(), iconResourceName); } DeviceIdentityBuilder();   DeviceIdentityBuilder(DeviceIdentity p); DeviceIdentity build(); DeviceIdentityBuilder softwareRev(); DeviceIdentityBuilder model(String model); DeviceIdentityBuilder osName(); DeviceIdentityBuilder withIcon(Object dev, String iconResourceName); DeviceIdentityBuilder withIcon(Class dev, String iconResourceName); static String randomUDI(); }
DeviceIdentityBuilder { public DeviceIdentityBuilder withIcon(Object dev, String iconResourceName) { return withIcon(dev.getClass(), iconResourceName); } DeviceIdentityBuilder();   DeviceIdentityBuilder(DeviceIdentity p); DeviceIdentity build(); DeviceIdentityBuilder softwareRev(); DeviceIdentityBuilder model(String model); DeviceIdentityBuilder osName(); DeviceIdentityBuilder withIcon(Object dev, String iconResourceName); DeviceIdentityBuilder withIcon(Class dev, String iconResourceName); static String randomUDI();  }