import com.google.common.base.Preconditions;
import java.util.Collections;
+import java.util.Objects;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.ExtensionDefinition;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.parser.builder.util.AbstractBuilder;
import org.opendaylight.yangtools.yang.parser.builder.util.Comparators;
+/**
+ * @deprecated Pre-Beryllium implementation, scheduled for removal.
+ */
+@Deprecated
public final class UnknownSchemaNodeBuilderImpl extends AbstractBuilder implements UnknownSchemaNodeBuilder {
- private QName qname;
+ private final QName qname;
private SchemaPath schemaPath;
private String description;
private String reference;
}
@Override
- public void setPath(SchemaPath schemaPath) {
+ public void setPath(final SchemaPath schemaPath) {
this.schemaPath = schemaPath;
}
public int hashCode() {
final int prime = 31;
int result = 1;
- result = prime * result + ((qname == null) ? 0 : qname.hashCode());
- result = prime * result + ((schemaPath == null) ? 0 : schemaPath.hashCode());
- result = prime * result + ((nodeType == null) ? 0 : nodeType.hashCode());
- result = prime * result + ((nodeParameter == null) ? 0 : nodeParameter.hashCode());
+ result = prime * result + Objects.hashCode(qname);
+ result = prime * result + Objects.hashCode(schemaPath);
+ result = prime * result + Objects.hashCode(nodeType);
+ result = prime * result + Objects.hashCode(nodeParameter);
return result;
}