Remove ProductAwareBuilder 51/97651/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 27 Sep 2021 12:59:27 +0000 (14:59 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 27 Sep 2021 13:24:04 +0000 (15:24 +0200)
This interface has been deprecated in 7.0.9, remove it in version 8.0.0.

JIRA: YANGTOOLS-1326
Change-Id: I487914805a00953f1b7ec17c70bd310cef322ae2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ProductAwareBuilder.java [deleted file]

diff --git a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ProductAwareBuilder.java b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ProductAwareBuilder.java
deleted file mode 100644 (file)
index 40f38b6..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.concepts;
-
-/**
- * An extension of the {@link Builder} concept which allows an implementation
- * of this interface to be used in collections instead of the product. Given
- * 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();
-
-    /**
-     * 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);
-}