@Test public void equals_otherClass() { final Device a = new Blueprint().build(); assertThat(a.equals("")).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 Device other = (Device) obj; if (category != other.category) { return false; } if (!icon.equals(other.icon)) { return false; } if (id != other.id) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!name.equals(other.name)) { return false; } if (!patterns.equals(other.patterns)) { return false; } return true; }
Device 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 Device other = (Device) obj; if (category != other.category) { return false; } if (!icon.equals(other.icon)) { return false; } if (id != other.id) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!name.equals(other.name)) { return false; } if (!patterns.equals(other.patterns)) { return false; } return true; } }
Device 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 Device other = (Device) obj; if (category != other.category) { return false; } if (!icon.equals(other.icon)) { return false; } if (id != other.id) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!name.equals(other.name)) { return false; } if (!patterns.equals(other.patterns)) { return false; } return true; } Device(@Nonnull final String name, @Nonnegative final int id, @Nonnull final Category category, @Nonnull final String icon,
			@Nonnull final String infoUrl, @Nonnull final SortedSet<DevicePattern> patterns); }
Device 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 Device other = (Device) obj; if (category != other.category) { return false; } if (!icon.equals(other.icon)) { return false; } if (id != other.id) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!name.equals(other.name)) { return false; } if (!patterns.equals(other.patterns)) { return false; } return true; } Device(@Nonnull final String name, @Nonnegative final int id, @Nonnull final Category category, @Nonnull final String icon,
			@Nonnull final String infoUrl, @Nonnull final SortedSet<DevicePattern> patterns); @Override boolean equals(final Object obj); @Nonnull Category getCategory(); @Nonnull String getIcon(); @Override @Nonnegative int getId(); @Nonnull String getInfoUrl(); @Nonnull String getName(); @Nonnull SortedSet<DevicePattern> getPatterns(); @Override int hashCode(); @Override String toString(); }
Device 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 Device other = (Device) obj; if (category != other.category) { return false; } if (!icon.equals(other.icon)) { return false; } if (id != other.id) { return false; } if (!infoUrl.equals(other.infoUrl)) { return false; } if (!name.equals(other.name)) { return false; } if (!patterns.equals(other.patterns)) { return false; } return true; } Device(@Nonnull final String name, @Nonnegative final int id, @Nonnull final Category category, @Nonnull final String icon,
			@Nonnull final String infoUrl, @Nonnull final SortedSet<DevicePattern> patterns); @Override boolean equals(final Object obj); @Nonnull Category getCategory(); @Nonnull String getIcon(); @Override @Nonnegative int getId(); @Nonnull String getInfoUrl(); @Nonnull String getName(); @Nonnull SortedSet<DevicePattern> getPatterns(); @Override int hashCode(); @Override String toString();  }