[BulkTag] adding verb starts_with

This commit is contained in:
Miriam Baglioni 2022-11-30 09:56:24 +01:00
parent 7d264a1d69
commit bb0ddc1c44
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
package eu.dnetlib.dhp.bulktag.criteria;
import java.io.Serializable;
@VerbClass("starts_with")
public class StartsWithVerb implements Selection, Serializable {
private String param;
public StartsWithVerb() {
}
public StartsWithVerb(final String param) {
this.param = param;
}
@Override
public boolean apply(String value) {
return value.startsWith(param);
}
public String getParam() {
return param;
}
public void setParam(String param) {
this.param = param;
}
}