2 * Copyright (c) 2015 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.stmt.rfc6020.effective;
10 import java.util.Objects;
11 import org.opendaylight.yangtools.yang.common.QName;
12 import org.opendaylight.yangtools.yang.model.api.FeatureDefinition;
13 import org.opendaylight.yangtools.yang.model.api.stmt.FeatureStatement;
14 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
16 public final class FeatureEffectiveStatementImpl extends AbstractEffectiveSchemaNode<FeatureStatement> implements
19 public FeatureEffectiveStatementImpl(final StmtContext<QName, FeatureStatement, ?> ctx) {
24 public int hashCode() {
27 result = prime * result + Objects.hashCode(getQName());
28 result = prime * result + Objects.hashCode(getPath());
33 public boolean equals(final Object obj) {
40 if (getClass() != obj.getClass()) {
43 FeatureEffectiveStatementImpl other = (FeatureEffectiveStatementImpl) obj;
44 return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
48 public String toString() {
49 StringBuilder sb = new StringBuilder(FeatureEffectiveStatementImpl.class.getSimpleName());
50 sb.append("[name=").append(getQName()).append("]");