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.netconf.test.tool.config;
10 import java.util.Objects;
12 public class YangResource {
14 private final String moduleName;
15 private final String revision;
16 private final String resourcePath;
18 public YangResource(String moduleName, String revision, String resourcePath) {
19 this.moduleName = moduleName;
20 this.revision = revision;
21 this.resourcePath = resourcePath;
24 public String getModuleName() {
28 public String getRevision() {
32 public String getResourcePath() {
37 public boolean equals(Object object) {
41 if (object == null || getClass() != object.getClass()) {
44 YangResource that = (YangResource) object;
45 return Objects.equals(moduleName, that.moduleName)
46 && Objects.equals(revision, that.revision)
47 && Objects.equals(resourcePath, that.resourcePath);
51 public int hashCode() {
52 return Objects.hash(moduleName, revision, resourcePath);