package eu.dnetlib.dhp.broker.oa.matchers.simple; import java.util.Arrays; import java.util.List; import org.apache.commons.lang3.tuple.Pair; import eu.dnetlib.dhp.broker.model.Topic; import eu.dnetlib.dhp.broker.oa.matchers.UpdateMatcher; import eu.dnetlib.dhp.broker.oa.util.UpdateInfo; import eu.dnetlib.dhp.schema.oaf.Result; import eu.dnetlib.dhp.schema.oaf.Software; public class EnrichMissingSoftware extends UpdateMatcher>, eu.dnetlib.broker.objects.Software> { public EnrichMissingSoftware() { super(true); } @Override protected List> findUpdates( final Pair> source, final Pair> target) { // TODO return Arrays.asList(); } @Override public UpdateInfo generateUpdateInfo( final eu.dnetlib.broker.objects.Software highlightValue, final Pair> source, final Pair> target) { return new UpdateInfo<>( Topic.ENRICH_MISSING_SOFTWARE, highlightValue, source.getLeft(), target.getLeft(), (p, s) -> p.getSoftwares().add(s), s -> s.getName()); } }