@Test public void equals_null() { final Browser a = new Blueprint().build(); assertThat(a.equals(null)).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 Browser other = (Browser) obj; if (id != other.id) { return false; } if (!family.equals(other.family)) { return false; } if (!familyName.equals(other.familyName)) { return false; } if (!patterns.equals(other.patterns)) { return false; } if (!type.equals(other.type)) { return false; } if (operatingSystem == null) { if (other.operatingSystem != null) { return false; } } else if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!url.equals(other.url)) { return false; } return true; }
Browser implements Identifiable, 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 Browser other = (Browser) obj; if (id != other.id) { return false; } if (!family.equals(other.family)) { return false; } if (!familyName.equals(other.familyName)) { return false; } if (!patterns.equals(other.patterns)) { return false; } if (!type.equals(other.type)) { return false; } if (operatingSystem == null) { if (other.operatingSystem != null) { return false; } } else if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!url.equals(other.url)) { return false; } return true; } }
Browser implements Identifiable, 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 Browser other = (Browser) obj; if (id != other.id) { return false; } if (!family.equals(other.family)) { return false; } if (!familyName.equals(other.familyName)) { return false; } if (!patterns.equals(other.patterns)) { return false; } if (!type.equals(other.type)) { return false; } if (operatingSystem == null) { if (other.operatingSystem != null) { return false; } } else if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!url.equals(other.url)) { return false; } return true; } Browser(@Nonnegative final int id, @Nonnull final UserAgentFamily family, @Nonnull final String familyName,
			@Nonnull final SortedSet<BrowserPattern> patterns, @Nonnull final BrowserType type,
			@Nonnull final OperatingSystem operatingSystem, @Nonnull final String icon, @Nonnull final String infoUrl,
			@Nonnull final String producer, @Nonnull final String producerUrl, @Nonnull final String url); }
Browser implements Identifiable, 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 Browser other = (Browser) obj; if (id != other.id) { return false; } if (!family.equals(other.family)) { return false; } if (!familyName.equals(other.familyName)) { return false; } if (!patterns.equals(other.patterns)) { return false; } if (!type.equals(other.type)) { return false; } if (operatingSystem == null) { if (other.operatingSystem != null) { return false; } } else if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!url.equals(other.url)) { return false; } return true; } Browser(@Nonnegative final int id, @Nonnull final UserAgentFamily family, @Nonnull final String familyName,
			@Nonnull final SortedSet<BrowserPattern> patterns, @Nonnull final BrowserType type,
			@Nonnull final OperatingSystem operatingSystem, @Nonnull final String icon, @Nonnull final String infoUrl,
			@Nonnull final String producer, @Nonnull final String producerUrl, @Nonnull final String url); void copyTo(@Nonnull final UserAgent.Builder builder); @Override boolean equals(final Object obj); @Nonnull UserAgentFamily getFamily(); @Nonnull String getFamilyName(); @Nonnull String getIcon(); @Override @Nonnegative int getId(); @Nonnull String getInfoUrl(); @Nullable OperatingSystem getOperatingSystem(); @Nonnull SortedSet<BrowserPattern> getPatterns(); @Nonnull String getProducer(); @Nonnull String getProducerUrl(); @Nonnull BrowserType getType(); @Nonnull String getUrl(); @Override int hashCode(); @Override String toString(); }
Browser implements Identifiable, 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 Browser other = (Browser) obj; if (id != other.id) { return false; } if (!family.equals(other.family)) { return false; } if (!familyName.equals(other.familyName)) { return false; } if (!patterns.equals(other.patterns)) { return false; } if (!type.equals(other.type)) { return false; } if (operatingSystem == null) { if (other.operatingSystem != null) { return false; } } else if (!operatingSystem.equals(other.operatingSystem)) { return false; } if (!icon.equals(other.icon)) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!producer.equals(other.producer)) { return false; } if (!producerUrl.equals(other.producerUrl)) { return false; } if (!url.equals(other.url)) { return false; } return true; } Browser(@Nonnegative final int id, @Nonnull final UserAgentFamily family, @Nonnull final String familyName,
			@Nonnull final SortedSet<BrowserPattern> patterns, @Nonnull final BrowserType type,
			@Nonnull final OperatingSystem operatingSystem, @Nonnull final String icon, @Nonnull final String infoUrl,
			@Nonnull final String producer, @Nonnull final String producerUrl, @Nonnull final String url); void copyTo(@Nonnull final UserAgent.Builder builder); @Override boolean equals(final Object obj); @Nonnull UserAgentFamily getFamily(); @Nonnull String getFamilyName(); @Nonnull String getIcon(); @Override @Nonnegative int getId(); @Nonnull String getInfoUrl(); @Nullable OperatingSystem getOperatingSystem(); @Nonnull SortedSet<BrowserPattern> getPatterns(); @Nonnull String getProducer(); @Nonnull String getProducerUrl(); @Nonnull BrowserType getType(); @Nonnull String getUrl(); @Override int hashCode(); @Override String toString();  }