package org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective;
import com.google.common.collect.ImmutableList;
-import java.util.LinkedList;
+import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import org.opendaylight.yangtools.concepts.Immutable;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
-public class DeviationEffectiveStatementImpl extends EffectiveStatementBase<SchemaNodeIdentifier, DeviationStatement>
+public class DeviationEffectiveStatementImpl extends DeclaredEffectiveStatementBase<SchemaNodeIdentifier, DeviationStatement>
implements Deviation, Immutable {
private final SchemaPath targetPath;
private final Deviate deviate;
ReferenceEffectiveStatementImpl referenceStmt = firstEffective(ReferenceEffectiveStatementImpl.class);
this.reference = (referenceStmt == null) ? null : referenceStmt.argument();
- List<UnknownSchemaNode> unknownSchemaNodesInit = new LinkedList<>();
+ List<UnknownSchemaNode> unknownSchemaNodesInit = new ArrayList<>();
for (final EffectiveStatement<?, ?> effectiveStatement : effectiveSubstatements()) {
if (effectiveStatement instanceof UnknownSchemaNode) {
unknownSchemaNodesInit.add((UnknownSchemaNode) effectiveStatement);
@Override
public String toString() {
- StringBuilder sb = new StringBuilder(DeviationEffectiveStatementImpl.class.getSimpleName());
- sb.append("[");
- sb.append("targetPath=").append(targetPath);
- sb.append(", deviate=").append(deviate);
- sb.append(", reference=").append(reference);
- sb.append("]");
- return sb.toString();
+ return DeviationEffectiveStatementImpl.class.getSimpleName() + "[" +
+ "targetPath=" + targetPath +
+ ", deviate=" + deviate +
+ ", reference=" + reference +
+ "]";
}
}