package org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.type;
import com.google.common.collect.ImmutableList;
-import java.util.ArrayList;
import java.util.List;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
@Override
final List<T> createConstraints(final List<T> argument) {
- if (!isCustomizedStatement()) {
- return ImmutableList.copyOf(argument);
- }
-
- final List<T> customizedConstraints = new ArrayList<>(argument.size());
- for (final T constraint : argument) {
- customizedConstraints.add(createCustomizedConstraint(constraint));
- }
- return ImmutableList.copyOf(customizedConstraints);
+ return ImmutableList.copyOf(argument);
}
-
- abstract T createCustomizedConstraint(T constraint);
}