Field { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Field other = (Field) obj; return Objects.equal(accessorPrefix, other.accessorPrefix) && Objects.equal(annotations, other.annotations) && Objects.equal(finalModifier, other.finalModifier) && Objects.equal(name, other.name) && Objects.equal(staticModifier, other.staticModifier) && Objects.equal(type, other.type) && Objects.equal(value, other.value) && Objects.equal(visibility, other.visibility); } Field(@Nonnull final String name, @Nonnull final Type type, @Nonnull final Visibility visibility,
			@Nonnull final Final finalModifier, @Nonnull final Static staticModifier, @Nonnull final List<Annotation> annotations,
			@Nonnull final String value, @Nonnull final AccessorPrefix accessorPrefix); @Override boolean equals(final Object obj); String getAccessorMethodName(); @Nonnull AccessorPrefix getAccessorPrefix(); @Nonnull List<Annotation> getAnnotations(); @Nonnull Final getFinal(); String getMutatorMethodName(); @Nonnull String getName(); @Nonnull Static getStatic(); @Nonnull Type getType(); @Nonnull String getValue(); @Nonnull Visibility getVisibility(); @Override int hashCode(); boolean isNonnegative(); boolean isNonnull(); boolean isNullable(); @Override String toString(); static final String WITHOUT_VALUE; }
@Test public void equals_null() { final Field a = new Blueprint().build(); assertFalse(a.equals(null)); }
@Test public void equals_otherClass() { final Field a = new Blueprint().build(); assertFalse(a.equals("")); }