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.yangtools.yang.parser.util;
10 import org.opendaylight.yangtools.yang.parser.util.TopologicalSort.NodeImpl;
13 * @deprecated This class is not used anywhere and is scheduled for removal with TopologicalSort.
16 public final class NodeWrappedType extends NodeImpl {
18 * The payload which is saved inside Node
20 private final Object wrappedType;
23 * Create new instance of class <code>NodeWrappedType</code>.
26 * object with payload data
28 public NodeWrappedType(final Object wrappedType) {
29 this.wrappedType = wrappedType;
33 * Gets payload from class
35 * @return object with <code>wrappedType</code>
37 public Object getWrappedType() {
42 public boolean equals(final Object o) {
46 if (!(o instanceof NodeWrappedType)) {
49 NodeWrappedType nodeWrappedType = (NodeWrappedType) o;
50 if (!wrappedType.equals(nodeWrappedType.wrappedType)) {
57 public int hashCode() {
58 return wrappedType.hashCode();
62 public String toString() {
63 return "NodeWrappedType{" + "wrappedType=" + wrappedType + '}';