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.yang.types;
10 import org.opendaylight.yangtools.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>.
21 * @param wrappedType object with payload data
23 NodeWrappedType(final Object wrappedType) {
24 this.wrappedType = wrappedType;
28 * Gets payload from class.
30 * @return object with <code>wrappedType</code>
32 Object getWrappedType() {
37 public boolean equals(final Object obj) {
41 if (!(obj instanceof NodeWrappedType)) {
44 NodeWrappedType nodeWrappedType = (NodeWrappedType) obj;
45 if (!wrappedType.equals(nodeWrappedType.wrappedType)) {
52 public int hashCode() {
53 return wrappedType.hashCode();
57 public String toString() {
58 return "NodeWrappedType{" + "wrappedType=" + wrappedType + '}';