package org.opendaylight.yangtools.odlext.parser;
import com.google.common.annotations.VisibleForTesting;
-import java.util.Objects;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.odlext.model.api.AnyxmlSchemaLocationEffectiveStatement;
import org.opendaylight.yangtools.odlext.model.api.AnyxmlSchemaLocationStatement;
public @NonNull SchemaPath getPath() {
return path;
}
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(path);
- result = prime * result + Objects.hashCode(getNodeType());
- result = prime * result + Objects.hashCode(getNodeParameter());
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- AnyxmlSchemaLocationEffectiveStatementImpl other = (AnyxmlSchemaLocationEffectiveStatementImpl) obj;
- return Objects.equals(path, other.path) && Objects.equals(getNodeType(), other.getNodeType())
- && Objects.equals(getNodeParameter(), other.getNodeParameter());
- }
}
import static java.util.Objects.requireNonNull;
import java.util.Collection;
-import java.util.Objects;
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.odlext.model.api.YangModeledAnyxmlSchemaNode;
return delegateSchemaNode().getUnknownSchemaNodes();
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(getQName());
- result = prime * result + Objects.hashCode(getPath());
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
-
- YangModeledAnyxmlEffectiveStatementImpl other = (YangModeledAnyxmlEffectiveStatementImpl) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public String toString() {
return YangModeledAnyxmlEffectiveStatementImpl.class.getSimpleName() + "["
import com.google.common.annotations.Beta;
import com.google.common.base.MoreObjects;
import com.google.common.base.Verify;
-import java.util.Objects;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.rfc8040.model.api.YangDataEffectiveStatement;
import org.opendaylight.yangtools.rfc8040.model.api.YangDataSchemaNode;
return (ContainerSchemaNode) container;
}
- @Override
- public int hashCode() {
- return Objects.hash(maybeQNameArgument, path);
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
-
- if (!(obj instanceof YangDataEffectiveStatementImpl)) {
- return false;
- }
-
- final YangDataEffectiveStatementImpl other = (YangDataEffectiveStatementImpl) obj;
- return Objects.equals(maybeQNameArgument, other.maybeQNameArgument) && Objects.equals(path, other.path);
- }
-
@Override
public String toString() {
return MoreObjects.toStringHelper(this).omitNullValues()
*/
package org.opendaylight.yangtools.yang.parser.openconfig.stmt;
-import java.util.Objects;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.concepts.SemVer;
import org.opendaylight.yangtools.openconfig.model.api.OpenConfigVersionEffectiveStatement;
public SchemaPath getPath() {
return path;
}
-
- @Override
- public int hashCode() {
- return Objects.hash(path, getNodeType(), getNodeParameter());
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof OpenConfigVersionEffectiveStatementImpl)) {
- return false;
- }
- final OpenConfigVersionEffectiveStatementImpl other = (OpenConfigVersionEffectiveStatementImpl) obj;
- return Objects.equals(path, other.path) && Objects.equals(getNodeType(), other.getNodeType())
- && Objects.equals(getNodeParameter(), other.getNodeParameter());
- }
}
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableSet;
import java.util.Collection;
-import java.util.Objects;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.ActionDefinition;
import org.opendaylight.yangtools.yang.model.api.NotificationDefinition;
return false;
}
- @Override
- public final int hashCode() {
- return Objects.hash(getQName(), getPath());
- }
-
- @Override
- public final boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null || getClass() != obj.getClass()) {
- return false;
- }
- AbstractEffectiveOperationContainerSchemaNode<?> other = (AbstractEffectiveOperationContainerSchemaNode<?>) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public final String toString() {
return MoreObjects.toStringHelper(this).add("path", getPath()).toString();
import com.google.common.collect.ImmutableSet;
import java.util.HashSet;
import java.util.LinkedHashSet;
-import java.util.Objects;
import java.util.Set;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
return groupings;
}
- @Override
- public final int hashCode() {
- return Objects.hash(getQName(), getPath());
- }
-
- @Override
- public final boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null || getClass() != obj.getClass()) {
- return false;
- }
- final AbstractEffectiveOperationDefinition<?> other =
- (AbstractEffectiveOperationDefinition<?>) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public final String toString() {
return MoreObjects.toStringHelper(this).add("qname", getQName()).add("path", getPath()).add("input", input)
import com.google.common.annotations.Beta;
import com.google.common.base.MoreObjects;
-import java.util.Objects;
import java.util.Optional;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.AnydataSchemaNode;
return mandatory;
}
- @Override
- public int hashCode() {
- return Objects.hash(getQName(),getPath());
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
-
- final AnydataEffectiveStatementImpl other = (AnydataEffectiveStatementImpl) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public String toString() {
return MoreObjects.toStringHelper(this).add("qname", getQName()).add("path", getPath()).toString();
*/
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.anyxml;
-import java.util.Objects;
import java.util.Optional;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.AnyxmlSchemaNode;
return Optional.ofNullable(original);
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(getQName());
- result = prime * result + Objects.hashCode(getPath());
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
-
- AnyxmlEffectiveStatementImpl other = (AnyxmlEffectiveStatementImpl) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public String toString() {
return AnyxmlEffectiveStatementImpl.class.getSimpleName() + "["
import com.google.common.collect.ImmutableSet;
import java.net.URI;
import java.util.Collection;
-import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNull;
return notifications;
}
- @Override
- public int hashCode() {
- final int prime = 17;
- int result = 1;
- result = prime * result + Objects.hashCode(targetPath);
- result = prime * result + Objects.hashCode(whenCondition);
- result = prime * result + getChildNodes().hashCode();
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof AugmentEffectiveStatementImpl)) {
- return false;
- }
- final AugmentEffectiveStatementImpl other = (AugmentEffectiveStatementImpl) obj;
- return Objects.equals(targetPath, other.targetPath) && Objects.equals(whenCondition, other.whenCondition)
- && getChildNodes().equals(other.getChildNodes());
- }
-
@Override
public String toString() {
return AugmentEffectiveStatementImpl.class.getSimpleName() + "[" + "targetPath=" + targetPath + ", when="
*/
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.bit;
-import java.util.Objects;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.BitEffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.BitStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.PositionEffectiveStatement;
-import org.opendaylight.yangtools.yang.model.api.type.BitsTypeDefinition;
import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractEffectiveDocumentedNode;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
return schemaPath;
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + qname.hashCode();
- result = prime * result + schemaPath.hashCode();
- result = prime * result + Objects.hashCode(declaredPosition);
- result = prime * result + getUnknownSchemaNodes().hashCode();
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final BitsTypeDefinition.Bit other = (BitsTypeDefinition.Bit) obj;
- return Objects.equals(qname, other.getQName()) && Objects.equals(schemaPath, other.getPath());
- }
-
@Override
public String toString() {
return BitEffectiveStatementImpl.class.getSimpleName() + "[name=" + qname.getLocalName() + ", position="
*/
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.case_;
-import java.util.Objects;
import java.util.Optional;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.CaseSchemaNode;
return configuration;
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(getQName());
- result = prime * result + Objects.hashCode(getPath());
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- CaseEffectiveStatementImpl other = (CaseEffectiveStatementImpl) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public String toString() {
- return CaseEffectiveStatementImpl.class.getSimpleName() + "["
- + "qname=" + getQName()
- + "]";
+ return CaseEffectiveStatementImpl.class.getSimpleName() + "[" + "qname=" + getQName() + "]";
}
}
import com.google.common.collect.ImmutableSortedMap;
import java.util.Collection;
import java.util.LinkedHashSet;
-import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.SortedMap;
return mandatory;
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(getQName());
- result = prime * result + Objects.hashCode(getPath());
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final ChoiceEffectiveStatementImpl other = (ChoiceEffectiveStatementImpl) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public String toString() {
- return ChoiceEffectiveStatementImpl.class.getSimpleName() + "["
- + "qname=" + getQName()
- + "]";
+ return ChoiceEffectiveStatementImpl.class.getSimpleName() + "[" + "qname=" + getQName() + "]";
}
}
import static java.util.Objects.requireNonNull;
import com.google.common.collect.ImmutableList;
-import java.util.Objects;
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
return findDataSchemaNode(name);
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(getQName());
- result = prime * result + Objects.hashCode(getPath());
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final ContainerEffectiveStatementImpl other = (ContainerEffectiveStatementImpl) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public String toString() {
return "container " + getQName().getLocalName();
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import java.util.Collection;
-import java.util.Objects;
import java.util.Set;
import org.opendaylight.yangtools.util.OptionalBoolean;
import org.opendaylight.yangtools.yang.model.api.DeviateDefinition;
public String getDeviatedUnits() {
return deviatedUnits;
}
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- DeviateEffectiveStatementImpl other = (DeviateEffectiveStatementImpl) obj;
- return Objects.equals(deviateType, other.deviateType)
- && deviatedConfig == other.deviatedConfig
- && Objects.equals(deviatedDefault, other.deviatedDefault)
- && deviatedMandatory == other.deviatedMandatory
- && Objects.equals(deviatedMaxElements, other.deviatedMaxElements)
- && Objects.equals(deviatedMinElements, other.deviatedMinElements)
- && Objects.equals(deviatedMustDefinitions, other.deviatedMustDefinitions)
- && Objects.equals(deviatedType, other.deviatedType)
- && Objects.equals(deviatedUniqueConstraints, other.deviatedUniqueConstraints)
- && Objects.equals(deviatedUnits, other.deviatedUnits);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(deviateType, deviatedConfig, deviatedDefault, deviatedMandatory, deviatedMaxElements,
- deviatedMinElements, deviatedMustDefinitions, deviatedType, deviatedUniqueConstraints, deviatedUnits);
- }
}
import com.google.common.collect.ImmutableList;
import java.util.ArrayList;
import java.util.List;
-import java.util.Objects;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.concepts.Immutable;
import org.opendaylight.yangtools.yang.model.api.DeviateDefinition;
return unknownSchemaNodes;
}
- @Override
- public int hashCode() {
- return Objects.hash(targetPath, deviateDefinitions, nullableDescription(), nullableReference());
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof DeviationEffectiveStatementImpl)) {
- return false;
- }
- final DeviationEffectiveStatementImpl other = (DeviationEffectiveStatementImpl) obj;
- return Objects.equals(targetPath, other.targetPath)
- && Objects.equals(deviateDefinitions, other.deviateDefinitions)
- && Objects.equals(nullableDescription(), other.nullableDescription())
- && Objects.equals(nullableReference(), other.nullableReference());
- }
-
@Override
public String toString() {
return DeviationEffectiveStatementImpl.class.getSimpleName() + "["
import java.util.ArrayDeque;
import java.util.Collection;
import java.util.Deque;
-import java.util.Objects;
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
return yin;
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(qname);
- result = prime * result + Objects.hashCode(schemaPath);
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- ExtensionEffectiveStatementImpl other = (ExtensionEffectiveStatementImpl) obj;
- return Objects.equals(qname, other.qname) && Objects.equals(schemaPath, other.schemaPath);
- }
-
@Override
public String toString() {
if (TOSTRING_DETECTOR.check(this)) {
*/
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.extension;
-import java.util.Objects;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
public SchemaPath getPath() {
return path;
}
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(maybeQNameArgument);
- result = prime * result + Objects.hashCode(path);
- result = prime * result + Objects.hashCode(getNodeType());
- result = prime * result + Objects.hashCode(getNodeParameter());
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof UnrecognizedEffectiveStatementImpl)) {
- return false;
- }
- UnrecognizedEffectiveStatementImpl other = (UnrecognizedEffectiveStatementImpl) obj;
- return Objects.equals(maybeQNameArgument, other.maybeQNameArgument) && Objects.equals(path, other.path)
- && Objects.equals(getNodeType(), other.getNodeType())
- && Objects.equals(getNodeParameter(), other.getNodeParameter());
- }
}
*/
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.feature;
-import java.util.Objects;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.FeatureDefinition;
import org.opendaylight.yangtools.yang.model.api.stmt.FeatureEffectiveStatement;
final class FeatureEffectiveStatementImpl extends AbstractEffectiveSchemaNode<FeatureStatement>
implements FeatureDefinition, FeatureEffectiveStatement {
-
FeatureEffectiveStatementImpl(final StmtContext<QName, FeatureStatement, ?> ctx) {
super(ctx);
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(getQName());
- result = prime * result + Objects.hashCode(getPath());
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- FeatureEffectiveStatementImpl other = (FeatureEffectiveStatementImpl) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public String toString() {
return FeatureEffectiveStatementImpl.class.getSimpleName() + "[name=" + getQName() + "]";
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.grouping;
import com.google.common.collect.ImmutableSet;
-import java.util.Objects;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
return notifications;
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(qname);
- result = prime * result + Objects.hashCode(path);
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final GroupingEffectiveStatementImpl other = (GroupingEffectiveStatementImpl) obj;
- return Objects.equals(qname, other.qname) && Objects.equals(path, other.path);
- }
-
@Override
public String toString() {
return GroupingEffectiveStatementImpl.class.getSimpleName() + "[" + "qname=" + qname + "]";
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
-import java.util.Objects;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
return Collections.unmodifiableSet(derivedIdentities);
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(getQName());
- result = prime * result + Objects.hashCode(getPath());
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final IdentityEffectiveStatementImpl other = (IdentityEffectiveStatementImpl) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public String toString() {
return MoreObjects.toStringHelper(this).add("qname", getQName()).add("path", getPath()).toString();
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.import_;
import com.google.common.base.MoreObjects;
-import java.util.Objects;
import java.util.Optional;
import org.opendaylight.yangtools.concepts.SemVer;
import org.opendaylight.yangtools.yang.common.QNameModule;
return prefix;
}
- @Override
- public int hashCode() {
- return Objects.hash(moduleName, revision, prefix, semVer, nullableDescription(), nullableReference());
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final ImportEffectiveStatementImpl other = (ImportEffectiveStatementImpl) obj;
- return Objects.equals(moduleName, other.moduleName) && Objects.equals(revision, other.revision)
- && Objects.equals(semVer, other.semVer) && Objects.equals(prefix, other.prefix)
- && Objects.equals(nullableDescription(), other.nullableDescription())
- && Objects.equals(nullableReference(), other.nullableReference());
- }
-
@Override
public String toString() {
return MoreObjects.toStringHelper(this).omitNullValues().add("moduleName", getModuleName())
import static java.util.Objects.requireNonNull;
import com.google.common.collect.ImmutableList;
-import java.util.Objects;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.DerivableSchemaNode;
return userOrdered();
}
- @Override
- public final int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(getQName());
- result = prime * result + Objects.hashCode(getPath());
- return result;
- }
-
- @Override
- public final boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof AbstractLeafListEffectiveStatement)) {
- return false;
- }
- final AbstractLeafListEffectiveStatement other = (AbstractLeafListEffectiveStatement) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public final String toString() {
return getClass().getSimpleName() + "[" + getQName() + "]";
import com.google.common.collect.ImmutableList;
import java.util.Collection;
import java.util.List;
-import java.util.Objects;
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
.collect(ImmutableList.toImmutableList());
}
- @Override
- public final int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(getQName());
- result = prime * result + Objects.hashCode(getPath());
- return result;
- }
-
- @Override
- public final boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof AbstractListEffectiveStatement)) {
- return false;
- }
- final AbstractListEffectiveStatement other = (AbstractListEffectiveStatement) obj;
- return Objects.equals(getQName(), other.getQName()) && Objects.equals(getPath(), other.getPath());
- }
-
@Override
public final String toString() {
return "list " + getQName().getLocalName();
import com.google.common.collect.Maps;
import java.util.Map;
import java.util.Map.Entry;
-import java.util.Objects;
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
}
return super.getNamespaceContents(namespace);
}
-
- @Override
- public int hashCode() {
- return Objects.hash(getName(), getYangVersion(), qnameModule);
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof ModuleEffectiveStatementImpl)) {
- return false;
- }
- ModuleEffectiveStatementImpl other = (ModuleEffectiveStatementImpl) obj;
- return Objects.equals(getName(), other.getName()) && qnameModule.equals(other.qnameModule)
- && Objects.equals(getYangVersion(), other.getYangVersion());
- }
}
*/
package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.must;
-import java.util.Objects;
import java.util.Optional;
import org.opendaylight.yangtools.yang.model.api.MustDefinition;
import org.opendaylight.yangtools.yang.model.api.RevisionAwareXPath;
return Optional.ofNullable(reference);
}
- @Override
- public int hashCode() {
- return Objects.hash(xpath, description, reference);
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof MustEffectiveStatementImpl)) {
- return false;
- }
- final MustEffectiveStatementImpl other = (MustEffectiveStatementImpl) obj;
- return Objects.equals(xpath, other.xpath) && Objects.equals(description, other.description)
- && Objects.equals(reference, other.reference);
- }
-
@Override
public String toString() {
return xpath.getOriginalString();
import java.lang.invoke.VarHandle;
import java.util.Collection;
import java.util.LinkedHashSet;
-import java.util.Objects;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
return addedByUses;
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(qname);
- result = prime * result + Objects.hashCode(path);
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final NotificationEffectiveStatementImpl other = (NotificationEffectiveStatementImpl) obj;
- return Objects.equals(qname, other.qname) && Objects.equals(path, other.path);
- }
-
@Override
public String toString() {
return NotificationEffectiveStatementImpl.class.getSimpleName() + "[qname=" + qname + ", path=" + path + "]";
import com.google.common.collect.Iterables;
import java.util.HashSet;
import java.util.Map;
-import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNull;
return submodules;
}
- @Override
- public int hashCode() {
- return Objects.hash(getName(), getYangVersion(), qnameModule);
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof SubmoduleEffectiveStatementImpl)) {
- return false;
- }
- final SubmoduleEffectiveStatementImpl other = (SubmoduleEffectiveStatementImpl) obj;
- return Objects.equals(getName(), other.getName()) && qnameModule.equals(other.qnameModule)
- && Objects.equals(getYangVersion(), other.getYangVersion());
- }
-
@Override
public void seal() {
if (!sealed) {
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
-import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNull;
return Optional.ofNullable(whenCondition);
}
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + Objects.hashCode(groupingPath);
- result = prime * result + Objects.hashCode(augmentations);
- return result;
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final UsesEffectiveStatementImpl other = (UsesEffectiveStatementImpl) obj;
- return Objects.equals(groupingPath, other.groupingPath) && Objects.equals(augmentations, other.augmentations);
- }
-
@Override
public String toString() {
return UsesEffectiveStatementImpl.class.getSimpleName() + "[groupingPath=" + groupingPath + "]";
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.yangtools.yang.thirdparty.plugin;
-import java.util.Objects;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
public SchemaPath getPath() {
return path;
}
-
- @Override
- public int hashCode() {
- return Objects.hash(path, getNodeType(), getNodeParameter());
- }
-
- @Override
- public boolean equals(final Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- final ThirdPartyExtensionEffectiveStatementImpl other = (ThirdPartyExtensionEffectiveStatementImpl) obj;
- if (!Objects.equals(path, other.path)) {
- return false;
- }
- if (!Objects.equals(getNodeType(), other.getNodeType())) {
- return false;
- }
- if (!Objects.equals(getNodeParameter(), other.getNodeParameter())) {
- return false;
- }
- return true;
- }
}