From f79e204bb08584ce4704d975fb197150242ad83c Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 27 Sep 2021 14:59:27 +0200 Subject: [PATCH] Remove ProductAwareBuilder 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 --- .../concepts/ProductAwareBuilder.java | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ProductAwareBuilder.java 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 index 40f38b657d..0000000000 --- a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/ProductAwareBuilder.java +++ /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

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

extends Builder

{ - /** - * 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); -} -- 2.36.6