@Test public void equals_EMPTY() { assertThat(UserAgent.EMPTY).isEqualTo(UserAgent.EMPTY); assertThat(UserAgent.EMPTY.hashCode() == UserAgent.EMPTY.hashCode()).isTrue(); assertThat(UserAgent.EMPTY).isSameAs(UserAgent.EMPTY); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + deviceCategory.hashCode(); result = prime * result + family.hashCode(); result = prime * result + icon.hashCode(); result = prime * result + name.hashCode(); result = prime * result + operatingSystem.hashCode(); result = prime * result + producer.hashCode(); result = prime * result + producerUrl.hashCode(); result = prime * result + type.hashCode(); result = prime * result + typeName.hashCode(); result = prime * result + url.hashCode(); result = prime * result + versionNumber.hashCode(); return result; }
UserAgent implements ReadableUserAgent, Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + deviceCategory.hashCode(); result = prime * result + family.hashCode(); result = prime * result + icon.hashCode(); result = prime * result + name.hashCode(); result = prime * result + operatingSystem.hashCode(); result = prime * result + producer.hashCode(); result = prime * result + producerUrl.hashCode(); result = prime * result + type.hashCode(); result = prime * result + typeName.hashCode(); result = prime * result + url.hashCode(); result = prime * result + versionNumber.hashCode(); return result; } }
UserAgent implements ReadableUserAgent, Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + deviceCategory.hashCode(); result = prime * result + family.hashCode(); result = prime * result + icon.hashCode(); result = prime * result + name.hashCode(); result = prime * result + operatingSystem.hashCode(); result = prime * result + producer.hashCode(); result = prime * result + producerUrl.hashCode(); result = prime * result + type.hashCode(); result = prime * result + typeName.hashCode(); result = prime * result + url.hashCode(); result = prime * result + versionNumber.hashCode(); return result; } UserAgent(@Nonnull final DeviceCategory deviceType, @Nonnull final UserAgentFamily family, @Nonnull final String icon,
			@Nonnull final String name, @Nonnull final OperatingSystem operatingSystem, @Nonnull final String producer,
			@Nonnull final String producerUrl, @Nonnull final UserAgentType type, @Nonnull final String typeName,
			@Nonnull final String url, @Nonnull final VersionNumber versionNumber); }
UserAgent implements ReadableUserAgent, Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + deviceCategory.hashCode(); result = prime * result + family.hashCode(); result = prime * result + icon.hashCode(); result = prime * result + name.hashCode(); result = prime * result + operatingSystem.hashCode(); result = prime * result + producer.hashCode(); result = prime * result + producerUrl.hashCode(); result = prime * result + type.hashCode(); result = prime * result + typeName.hashCode(); result = prime * result + url.hashCode(); result = prime * result + versionNumber.hashCode(); return result; } UserAgent(@Nonnull final DeviceCategory deviceType, @Nonnull final UserAgentFamily family, @Nonnull final String icon,
			@Nonnull final String name, @Nonnull final OperatingSystem operatingSystem, @Nonnull final String producer,
			@Nonnull final String producerUrl, @Nonnull final UserAgentType type, @Nonnull final String typeName,
			@Nonnull final String url, @Nonnull final VersionNumber versionNumber); @Override boolean equals(final Object obj); @Nonnull @Override DeviceCategory getDeviceCategory(); @Override UserAgentFamily getFamily(); @Override String getIcon(); @Override String getName(); @Override OperatingSystem getOperatingSystem(); @Override String getProducer(); @Override String getProducerUrl(); @Override UserAgentType getType(); @Override String getTypeName(); @Override String getUrl(); @Override VersionNumber getVersionNumber(); @Override int hashCode(); @Nonnull @Override String toString(); }
UserAgent implements ReadableUserAgent, Serializable { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + deviceCategory.hashCode(); result = prime * result + family.hashCode(); result = prime * result + icon.hashCode(); result = prime * result + name.hashCode(); result = prime * result + operatingSystem.hashCode(); result = prime * result + producer.hashCode(); result = prime * result + producerUrl.hashCode(); result = prime * result + type.hashCode(); result = prime * result + typeName.hashCode(); result = prime * result + url.hashCode(); result = prime * result + versionNumber.hashCode(); return result; } UserAgent(@Nonnull final DeviceCategory deviceType, @Nonnull final UserAgentFamily family, @Nonnull final String icon,
			@Nonnull final String name, @Nonnull final OperatingSystem operatingSystem, @Nonnull final String producer,
			@Nonnull final String producerUrl, @Nonnull final UserAgentType type, @Nonnull final String typeName,
			@Nonnull final String url, @Nonnull final VersionNumber versionNumber); @Override boolean equals(final Object obj); @Nonnull @Override DeviceCategory getDeviceCategory(); @Override UserAgentFamily getFamily(); @Override String getIcon(); @Override String getName(); @Override OperatingSystem getOperatingSystem(); @Override String getProducer(); @Override String getProducerUrl(); @Override UserAgentType getType(); @Override String getTypeName(); @Override String getUrl(); @Override VersionNumber getVersionNumber(); @Override int hashCode(); @Nonnull @Override String toString(); static final UserAgent EMPTY; }