@Test public void testEqualsDifferentOptionality() { final Field other = new Field(name, description, !field.isOptional(), values, codeSets); assertThat(other).isNotEqualTo(field); assertThat(field).isNotEqualTo(other); }
public boolean isOptional() { return optional; }
Field implements Described, Named { public boolean isOptional() { return optional; } }
Field implements Described, Named { public boolean isOptional() { return optional; } Field(final String name, final String description, final boolean isOptional,
            final List<EnumeratedValue> values, final List<CodeSet> codeSets); }
Field implements Described, Named { public boolean isOptional() { return optional; } Field(final String name, final String description, final boolean isOptional,
            final List<EnumeratedValue> values, final List<CodeSet> codeSets); @Override boolean equals(final Object obj); @Override String getDescription(); List<CodeSet> getCodeSets(); @Override String getName(); List<EnumeratedValue> getValues(); @Override int hashCode(); boolean isOptional(); @Override String toString(); }
Field implements Described, Named { public boolean isOptional() { return optional; } Field(final String name, final String description, final boolean isOptional,
            final List<EnumeratedValue> values, final List<CodeSet> codeSets); @Override boolean equals(final Object obj); @Override String getDescription(); List<CodeSet> getCodeSets(); @Override String getName(); List<EnumeratedValue> getValues(); @Override int hashCode(); boolean isOptional(); @Override String toString();  }