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;
12 public final class NodeWrappedType extends NodeImpl {
14 * The payload which is saved inside Node
16 private final Object wrappedType;
19 * Create new instance of class <code>NodeWrappedType</code>.
22 * object with payload data
24 NodeWrappedType(Object wrappedType) {
25 this.wrappedType = wrappedType;
29 * Gets payload from class
31 * @return object with <code>wrappedType</code>
33 Object getWrappedType() {
38 public boolean equals(Object o) {
42 if (!(o instanceof NodeWrappedType)) {
45 NodeWrappedType nodeWrappedType = (NodeWrappedType) o;
46 if (!wrappedType.equals(nodeWrappedType.wrappedType)) {
53 public int hashCode() {
54 return wrappedType.hashCode();
58 public String toString() {
59 return "NodeWrappedType{" + "wrappedType=" + wrappedType + '}';