@Test public void appendBrowser() { final DataBuilder b = new DataBuilder(); final SortedSet<OperatingSystemPattern> osPatternSet = new TreeSet<OperatingSystemPattern>(); final OperatingSystem os = new OperatingSystem(1, "n1", "f1", "iu1", osPatternSet, "p1", "pu1", "u1", "i1"); final BrowserType browserType = new BrowserType(1, "Browser"); final Browser browser = new Browser(4256, UserAgentFamily.FIREBIRD, UserAgentFamily.FIREBIRD.getName(), new TreeSet<BrowserPattern>(), browserType, os, "icn", "iu1", "p1", "pu1", "u1"); assertThat(b.appendBrowser(browser)).isSameAs(b); assertThat(b.appendBrowser(browser)).isSameAs(b); }
public DataBuilder appendBrowser(@Nonnull final Browser browser) { Check.notNull(browser, "browser"); browsers.add(browser); return this; }
DataBuilder { public DataBuilder appendBrowser(@Nonnull final Browser browser) { Check.notNull(browser, "browser"); browsers.add(browser); return this; } }
DataBuilder { public DataBuilder appendBrowser(@Nonnull final Browser browser) { Check.notNull(browser, "browser"); browsers.add(browser); return this; }  }
DataBuilder { public DataBuilder appendBrowser(@Nonnull final Browser browser) { Check.notNull(browser, "browser"); browsers.add(browser); return this; }  DataBuilder appendBrowser(@Nonnull final Browser browser); @Nonnull DataBuilder appendBrowserBuilder(@Nonnull final Browser.Builder browserBuilder); @Nonnull DataBuilder appendBrowserOperatingSystemMapping(@Nonnull final BrowserOperatingSystemMapping browserOsMapping); @Nonnull DataBuilder appendBrowserPattern(@Nonnull final BrowserPattern pattern); @Nonnull DataBuilder appendBrowserType(@Nonnull final BrowserType type); DataBuilder appendDevice(@Nonnull final Device device); @Nonnull DataBuilder appendDeviceBuilder(@Nonnull final Device.Builder deviceBuilder); @Nonnull DataBuilder appendDevicePattern(@Nonnull final DevicePattern pattern); @Nonnull DataBuilder appendOperatingSystem(@Nonnull final OperatingSystem operatingSystem); @Nonnull DataBuilder appendOperatingSystemBuilder(@Nonnull final OperatingSystem.Builder operatingSystemBuilder); @Nonnull DataBuilder appendOperatingSystemPattern(@Nonnull final OperatingSystemPattern pattern); @Nonnull DataBuilder appendRobot(@Nonnull final Robot robot); @Nonnull Data build(); @Nonnull DataBuilder setVersion(@Nonnull final String version); }
DataBuilder { public DataBuilder appendBrowser(@Nonnull final Browser browser) { Check.notNull(browser, "browser"); browsers.add(browser); return this; }  DataBuilder appendBrowser(@Nonnull final Browser browser); @Nonnull DataBuilder appendBrowserBuilder(@Nonnull final Browser.Builder browserBuilder); @Nonnull DataBuilder appendBrowserOperatingSystemMapping(@Nonnull final BrowserOperatingSystemMapping browserOsMapping); @Nonnull DataBuilder appendBrowserPattern(@Nonnull final BrowserPattern pattern); @Nonnull DataBuilder appendBrowserType(@Nonnull final BrowserType type); DataBuilder appendDevice(@Nonnull final Device device); @Nonnull DataBuilder appendDeviceBuilder(@Nonnull final Device.Builder deviceBuilder); @Nonnull DataBuilder appendDevicePattern(@Nonnull final DevicePattern pattern); @Nonnull DataBuilder appendOperatingSystem(@Nonnull final OperatingSystem operatingSystem); @Nonnull DataBuilder appendOperatingSystemBuilder(@Nonnull final OperatingSystem.Builder operatingSystemBuilder); @Nonnull DataBuilder appendOperatingSystemPattern(@Nonnull final OperatingSystemPattern pattern); @Nonnull DataBuilder appendRobot(@Nonnull final Robot robot); @Nonnull Data build(); @Nonnull DataBuilder setVersion(@Nonnull final String version);  }