@Test public void equals_otherClass() { final UserAgent ua = new UserAgent(DeviceCategory.EMPTY, UserAgentFamily.CHROMIUM, "icon", "name", OperatingSystem.EMPTY, "producer", "producer url", UserAgentType.MOBILE_BROWSER, "type", "url", VersionParser.parseVersion("1")); assertThat(ua.equals(OperatingSystem.EMPTY)).isFalse(); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final UserAgent other = (UserAgent) obj; if (deviceCategory != other.deviceCategory) { return false; } if (!family.equals(other.family)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!name.equals(other.name)) { return false; } if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!type.equals(other.type)) { return false; } if (!typeName.equals(other.typeName)) { return false; } if (!url.equals(other.url)) { return false; } if (!versionNumber.equals(other.versionNumber)) { return false; } return true; }
UserAgent implements ReadableUserAgent, Serializable { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final UserAgent other = (UserAgent) obj; if (deviceCategory != other.deviceCategory) { return false; } if (!family.equals(other.family)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!name.equals(other.name)) { return false; } if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!type.equals(other.type)) { return false; } if (!typeName.equals(other.typeName)) { return false; } if (!url.equals(other.url)) { return false; } if (!versionNumber.equals(other.versionNumber)) { return false; } return true; } }
UserAgent implements ReadableUserAgent, Serializable { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final UserAgent other = (UserAgent) obj; if (deviceCategory != other.deviceCategory) { return false; } if (!family.equals(other.family)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!name.equals(other.name)) { return false; } if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!type.equals(other.type)) { return false; } if (!typeName.equals(other.typeName)) { return false; } if (!url.equals(other.url)) { return false; } if (!versionNumber.equals(other.versionNumber)) { return false; } return true; } 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 boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final UserAgent other = (UserAgent) obj; if (deviceCategory != other.deviceCategory) { return false; } if (!family.equals(other.family)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!name.equals(other.name)) { return false; } if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!type.equals(other.type)) { return false; } if (!typeName.equals(other.typeName)) { return false; } if (!url.equals(other.url)) { return false; } if (!versionNumber.equals(other.versionNumber)) { return false; } return true; } 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 boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final UserAgent other = (UserAgent) obj; if (deviceCategory != other.deviceCategory) { return false; } if (!family.equals(other.family)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!name.equals(other.name)) { return false; } if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!type.equals(other.type)) { return false; } if (!typeName.equals(other.typeName)) { return false; } if (!url.equals(other.url)) { return false; } if (!versionNumber.equals(other.versionNumber)) { return false; } return true; } 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; }