@Test public void equals_otherClass() { final BrowserOperatingSystemMapping m = new BrowserOperatingSystemMapping(1, 1); final String otherClass = ""; assertThat(m.equals(otherClass)).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 BrowserOperatingSystemMapping other = (BrowserOperatingSystemMapping) obj; if (browserId != other.browserId) { return false; } if (operatingSystemId != other.operatingSystemId) { return false; } return true; }
BrowserOperatingSystemMapping implements 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 BrowserOperatingSystemMapping other = (BrowserOperatingSystemMapping) obj; if (browserId != other.browserId) { return false; } if (operatingSystemId != other.operatingSystemId) { return false; } return true; } }
BrowserOperatingSystemMapping implements 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 BrowserOperatingSystemMapping other = (BrowserOperatingSystemMapping) obj; if (browserId != other.browserId) { return false; } if (operatingSystemId != other.operatingSystemId) { return false; } return true; } BrowserOperatingSystemMapping(@Nonnegative final int browserId, @Nonnegative final int operatingSystemId); }
BrowserOperatingSystemMapping implements 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 BrowserOperatingSystemMapping other = (BrowserOperatingSystemMapping) obj; if (browserId != other.browserId) { return false; } if (operatingSystemId != other.operatingSystemId) { return false; } return true; } BrowserOperatingSystemMapping(@Nonnegative final int browserId, @Nonnegative final int operatingSystemId); @Override boolean equals(final Object obj); @Nonnegative int getBrowserId(); @Nonnegative int getOperatingSystemId(); @Override int hashCode(); @Override String toString(); }
BrowserOperatingSystemMapping implements 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 BrowserOperatingSystemMapping other = (BrowserOperatingSystemMapping) obj; if (browserId != other.browserId) { return false; } if (operatingSystemId != other.operatingSystemId) { return false; } return true; } BrowserOperatingSystemMapping(@Nonnegative final int browserId, @Nonnegative final int operatingSystemId); @Override boolean equals(final Object obj); @Nonnegative int getBrowserId(); @Nonnegative int getOperatingSystemId(); @Override int hashCode(); @Override String toString();  }