Deprecate ProductAwareBuilder
[yangtools.git] / common / concepts / src / main / java / org / opendaylight / yangtools / concepts / ProductAwareBuilder.java
index 771ceb2cac976dc35addf4ed4f57620d1de1e6dd..40f38b657d9247687c2fa787d39dd0141aebcfb1 100644 (file)
@@ -13,24 +13,26 @@ package org.opendaylight.yangtools.concepts;
  * 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);
 }