* the mutable nature of Builders, this has to be done very carefully.
*
* @param <P> Product type
+ * @deprecated This interface never reached its intended use and is scheduled for removal.
*/
+@Deprecated(since = "7.0.9", forRemoval = true)
public interface ProductAwareBuilder<P> extends Builder<P> {
- /**
- * Return the hash code of the product. This has to be equivalent
- * of calling {@link #build()}.{@link Object#hashCode()}.
- *
- * @return the hash code of the product.
- */
- int productHashCode();
+ /**
+ * Return the hash code of the product. This has to be equivalent
+ * of calling {@link #build()}.{@link Object#hashCode()}.
+ *
+ * @return the hash code of the product.
+ */
+ int productHashCode();
- /**
- * Check whether an instance of the product that would be created
- * by the builder is equal to an existing instance. This has to
- * be equivalent of calling {@link #build()}.{@link Object#equals(Object)}.
- *
- * @param product Product instance
- * @return Return true if the product is equal to the would-be
- * product of the builder.
- */
- boolean productEquals(Object product);
+ /**
+ * Check whether an instance of the product that would be created
+ * by the builder is equal to an existing instance. This has to
+ * be equivalent of calling {@link #build()}.{@link Object#equals(Object)}.
+ *
+ * @param product Product instance
+ * @return Return true if the product is equal to the would-be
+ * product of the builder.
+ */
+ boolean productEquals(Object product);
}