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