package org.opendaylight.yangtools.yang.parser.builder.impl;
import static com.google.common.base.Preconditions.checkNotNull;
-
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
import java.net.URI;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
+import java.util.Objects;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.AugmentationSchema;
import org.opendaylight.yangtools.yang.model.api.NamespaceRevisionAware;
import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
import org.opendaylight.yangtools.yang.parser.builder.util.AbstractDocumentedDataNodeContainer;
+/**
+ * @deprecated Pre-Beryllium implementation, scheduled for removal.
+ */
+@Deprecated
final class AugmentationSchemaImpl extends AbstractDocumentedDataNodeContainer implements AugmentationSchema, NamespaceRevisionAware, Comparable<AugmentationSchemaImpl> {
private final int order;
private final SchemaPath targetPath;
public int hashCode() {
final int prime = 17;
int result = 1;
- result = prime * result + ((targetPath == null) ? 0 : targetPath.hashCode());
- result = prime * result + ((whenCondition == null) ? 0 : whenCondition.hashCode());
+ result = prime * result + Objects.hashCode(targetPath);
+ result = prime * result + Objects.hashCode(whenCondition);
result = prime * result + getChildNodes().hashCode();
return result;
}
@Override
public String toString() {
- StringBuilder sb = new StringBuilder(AugmentationSchemaImpl.class.getSimpleName());
- sb.append("[");
- sb.append("targetPath=").append(targetPath);
- sb.append(", when=").append(whenCondition);
- sb.append("]");
- return sb.toString();
+ return AugmentationSchemaImpl.class.getSimpleName() + "[" +
+ "targetPath=" + targetPath +
+ ", when=" + whenCondition +
+ "]";
}
@Override
}
return this.order - o.order;
}
-}
\ No newline at end of file
+}