@Test public void equals_EMPTY() { assertThat(Data.EMPTY).isSameAs(Data.EMPTY); final Data empty = new Data(new HashSet<Browser>(0), new HashMap<Integer, SortedSet<BrowserPattern>>(0), new HashMap<Integer, BrowserType>(0), new TreeMap<BrowserPattern, Browser>(), new HashSet<BrowserOperatingSystemMapping>(0), new HashSet<OperatingSystem>(0), new HashMap<Integer, SortedSet<OperatingSystemPattern>>(0), new TreeMap<OperatingSystemPattern, OperatingSystem>(), new ArrayList<Robot>(0), new HashSet<Device>(0), new HashMap<Integer, SortedSet<DevicePattern>>(0), new TreeMap<DevicePattern, Device>(), ""); assertThat(empty).isEqualTo(Data.EMPTY); assertThat(Data.EMPTY.hashCode() == empty.hashCode()).isTrue(); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + browsers.hashCode(); result = prime * result + browserPatterns.hashCode(); result = prime * result + browserTypes.hashCode(); result = prime * result + patternToBrowserMap.hashCode(); result = prime * result + browserToOperatingSystemMappings.hashCode(); result = prime * result + operatingSystems.hashCode(); result = prime * result + operatingSystemPatterns.hashCode(); result = prime * result + patternToOperatingSystemMap.hashCode(); result = prime * result + robots.hashCode(); result = prime * result + devices.hashCode(); result = prime * result + devicePatterns.hashCode(); result = prime * result + patternToDeviceMap.hashCode(); result = prime * result + version.hashCode(); return result; }
Data implements Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + browsers.hashCode(); result = prime * result + browserPatterns.hashCode(); result = prime * result + browserTypes.hashCode(); result = prime * result + patternToBrowserMap.hashCode(); result = prime * result + browserToOperatingSystemMappings.hashCode(); result = prime * result + operatingSystems.hashCode(); result = prime * result + operatingSystemPatterns.hashCode(); result = prime * result + patternToOperatingSystemMap.hashCode(); result = prime * result + robots.hashCode(); result = prime * result + devices.hashCode(); result = prime * result + devicePatterns.hashCode(); result = prime * result + patternToDeviceMap.hashCode(); result = prime * result + version.hashCode(); return result; } }
Data implements Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + browsers.hashCode(); result = prime * result + browserPatterns.hashCode(); result = prime * result + browserTypes.hashCode(); result = prime * result + patternToBrowserMap.hashCode(); result = prime * result + browserToOperatingSystemMappings.hashCode(); result = prime * result + operatingSystems.hashCode(); result = prime * result + operatingSystemPatterns.hashCode(); result = prime * result + patternToOperatingSystemMap.hashCode(); result = prime * result + robots.hashCode(); result = prime * result + devices.hashCode(); result = prime * result + devicePatterns.hashCode(); result = prime * result + patternToDeviceMap.hashCode(); result = prime * result + version.hashCode(); return result; } Data(@Nonnull final Set<Browser> browsers, @Nonnull final Map<Integer, SortedSet<BrowserPattern>> browserPatterns,
			@Nonnull final Map<Integer, BrowserType> browserTypes, @Nonnull final SortedMap<BrowserPattern, Browser> patternToBrowserMap,
			@Nonnull final Set<BrowserOperatingSystemMapping> browserToOperatingSystemMappings,
			@Nonnull final Set<OperatingSystem> operatingSystems,
			@Nonnull final Map<Integer, SortedSet<OperatingSystemPattern>> operatingSystemPatterns,
			@Nonnull final SortedMap<OperatingSystemPattern, OperatingSystem> patternToOperatingSystemMap,
			@Nonnull final List<Robot> robots, @Nonnull final Set<Device> devices,
			@Nonnull final Map<Integer, SortedSet<DevicePattern>> devicePatterns,
			@Nonnull final SortedMap<DevicePattern, Device> patternToDeviceMap, @Nonnull final String version); }
Data implements Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + browsers.hashCode(); result = prime * result + browserPatterns.hashCode(); result = prime * result + browserTypes.hashCode(); result = prime * result + patternToBrowserMap.hashCode(); result = prime * result + browserToOperatingSystemMappings.hashCode(); result = prime * result + operatingSystems.hashCode(); result = prime * result + operatingSystemPatterns.hashCode(); result = prime * result + patternToOperatingSystemMap.hashCode(); result = prime * result + robots.hashCode(); result = prime * result + devices.hashCode(); result = prime * result + devicePatterns.hashCode(); result = prime * result + patternToDeviceMap.hashCode(); result = prime * result + version.hashCode(); return result; } Data(@Nonnull final Set<Browser> browsers, @Nonnull final Map<Integer, SortedSet<BrowserPattern>> browserPatterns,
			@Nonnull final Map<Integer, BrowserType> browserTypes, @Nonnull final SortedMap<BrowserPattern, Browser> patternToBrowserMap,
			@Nonnull final Set<BrowserOperatingSystemMapping> browserToOperatingSystemMappings,
			@Nonnull final Set<OperatingSystem> operatingSystems,
			@Nonnull final Map<Integer, SortedSet<OperatingSystemPattern>> operatingSystemPatterns,
			@Nonnull final SortedMap<OperatingSystemPattern, OperatingSystem> patternToOperatingSystemMap,
			@Nonnull final List<Robot> robots, @Nonnull final Set<Device> devices,
			@Nonnull final Map<Integer, SortedSet<DevicePattern>> devicePatterns,
			@Nonnull final SortedMap<DevicePattern, Device> patternToDeviceMap, @Nonnull final String version); @Override boolean equals(final Object obj); @Nonnull Map<Integer, SortedSet<BrowserPattern>> getBrowserPatterns(); @Nonnull Set<Browser> getBrowsers(); @Nonnull Set<BrowserOperatingSystemMapping> getBrowserToOperatingSystemMappings(); @Nonnull Map<Integer, BrowserType> getBrowserTypes(); @Nonnull Map<Integer, SortedSet<DevicePattern>> getDevicePatterns(); @Nonnull Set<Device> getDevices(); @Nonnull Map<Integer, SortedSet<OperatingSystemPattern>> getOperatingSystemPatterns(); @Nonnull Set<OperatingSystem> getOperatingSystems(); @Nonnull SortedMap<BrowserPattern, Browser> getPatternToBrowserMap(); @Nonnull SortedMap<DevicePattern, Device> getPatternToDeviceMap(); @Nonnull SortedMap<OperatingSystemPattern, OperatingSystem> getPatternToOperatingSystemMap(); @Nonnull List<Robot> getRobots(); @Nonnull String getVersion(); @Override int hashCode(); @Nonnull String toStats(); @Override String toString(); }
Data implements Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + browsers.hashCode(); result = prime * result + browserPatterns.hashCode(); result = prime * result + browserTypes.hashCode(); result = prime * result + patternToBrowserMap.hashCode(); result = prime * result + browserToOperatingSystemMappings.hashCode(); result = prime * result + operatingSystems.hashCode(); result = prime * result + operatingSystemPatterns.hashCode(); result = prime * result + patternToOperatingSystemMap.hashCode(); result = prime * result + robots.hashCode(); result = prime * result + devices.hashCode(); result = prime * result + devicePatterns.hashCode(); result = prime * result + patternToDeviceMap.hashCode(); result = prime * result + version.hashCode(); return result; } Data(@Nonnull final Set<Browser> browsers, @Nonnull final Map<Integer, SortedSet<BrowserPattern>> browserPatterns,
			@Nonnull final Map<Integer, BrowserType> browserTypes, @Nonnull final SortedMap<BrowserPattern, Browser> patternToBrowserMap,
			@Nonnull final Set<BrowserOperatingSystemMapping> browserToOperatingSystemMappings,
			@Nonnull final Set<OperatingSystem> operatingSystems,
			@Nonnull final Map<Integer, SortedSet<OperatingSystemPattern>> operatingSystemPatterns,
			@Nonnull final SortedMap<OperatingSystemPattern, OperatingSystem> patternToOperatingSystemMap,
			@Nonnull final List<Robot> robots, @Nonnull final Set<Device> devices,
			@Nonnull final Map<Integer, SortedSet<DevicePattern>> devicePatterns,
			@Nonnull final SortedMap<DevicePattern, Device> patternToDeviceMap, @Nonnull final String version); @Override boolean equals(final Object obj); @Nonnull Map<Integer, SortedSet<BrowserPattern>> getBrowserPatterns(); @Nonnull Set<Browser> getBrowsers(); @Nonnull Set<BrowserOperatingSystemMapping> getBrowserToOperatingSystemMappings(); @Nonnull Map<Integer, BrowserType> getBrowserTypes(); @Nonnull Map<Integer, SortedSet<DevicePattern>> getDevicePatterns(); @Nonnull Set<Device> getDevices(); @Nonnull Map<Integer, SortedSet<OperatingSystemPattern>> getOperatingSystemPatterns(); @Nonnull Set<OperatingSystem> getOperatingSystems(); @Nonnull SortedMap<BrowserPattern, Browser> getPatternToBrowserMap(); @Nonnull SortedMap<DevicePattern, Device> getPatternToDeviceMap(); @Nonnull SortedMap<OperatingSystemPattern, OperatingSystem> getPatternToOperatingSystemMap(); @Nonnull List<Robot> getRobots(); @Nonnull String getVersion(); @Override int hashCode(); @Nonnull String toStats(); @Override String toString(); static final Data EMPTY; }