cdc.mf.checks.nodes.parameters.DefaultParametersChecker Maven / Gradle / Ivy
The newest version!
package cdc.mf.checks.nodes.parameters;
import java.util.List;
import cdc.issues.checks.AbstractPartsChecker;
import cdc.issues.checks.SnapshotManager;
import cdc.issues.locations.LocatedObject;
import cdc.mf.model.MfNameItem;
import cdc.mf.model.MfParameter;
import cdc.mf.model.MfParameterOwner;
public class DefaultParametersChecker extends AbstractPartsChecker {
public DefaultParametersChecker(SnapshotManager manager) {
super(manager,
MfParameterOwner.class,
MfParameter.class,
new DefaultParameterChecker(manager));
}
@Override
protected List> getParts(MfParameterOwner object) {
final List delegates = object.getParameters()
.stream()
.sorted(MfNameItem.NAME_COMPARATOR)
.toList();
return LocatedObject.locate(delegates);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy