2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.binding.spec.util;
10 import java.io.Serial;
11 import org.opendaylight.yangtools.yang.binding.Identifier;
13 @Deprecated(since = "11.0.3", forRemoval = true)
14 public class NodeKey implements Identifier<Node> {
16 private static final long serialVersionUID = 1L;
20 public NodeKey(final int id) {
29 public int hashCode() {
30 return Integer.hashCode(id);
34 public boolean equals(final Object obj) {
35 return this == obj || obj != null && getClass() == obj.getClass() && id == ((NodeKey) obj).id;