OperatingSystem implements ReadableOperatingSystem, 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 OperatingSystem other = (OperatingSystem) obj; if (family != other.family) { return false; } if (!familyName.equals(other.familyName)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!name.equals(other.name)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!url.equals(other.url)) { return false; } if (!versionNumber.equals(other.versionNumber)) { return false; } return true; } OperatingSystem(@Nonnull final OperatingSystemFamily family, @Nonnull final String familyName, @Nonnull final String icon,
			@Nonnull final String name, @Nonnull final String producer, @Nonnull final String producerUrl, @Nonnull final String url,
			@Nonnull final VersionNumber versionNumber); @Override boolean equals(final Object obj); @Override OperatingSystemFamily getFamily(); @Override String getFamilyName(); @Override String getIcon(); @Override String getName(); @Override String getProducer(); @Override String getProducerUrl(); @Override String getUrl(); @Override VersionNumber getVersionNumber(); @Override int hashCode(); @Override String toString(); static final OperatingSystem EMPTY; }
@Test public void equals_null() { assertThat(OperatingSystem.EMPTY.equals(null)).isFalse(); }
@Test public void equals_otherClass() { final OperatingSystemFamily linux = OperatingSystemFamily.LINUX; final OperatingSystem os = new OperatingSystem(linux, "family", "icon", "name", "producer", "producer url", "url", new VersionNumber("1")); assertThat(os.equals(123456)).isFalse(); }