Field { @Override public int hashCode() { return Objects.hashCode(accessorPrefix, annotations, finalModifier, name, staticModifier, type, value, 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_identical() { final Field a = new Blueprint().build(); final Field b = new Blueprint().build(); assertEquals(a, b); assertTrue(a.hashCode() == b.hashCode()); }
@Test public void equals_same() { final Field a = new Blueprint().build(); assertEquals(a, a); assertSame(a, a); assertTrue(a.hashCode() == a.hashCode()); }