devutility.internal.test.data.model.StudentSearchParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devutility.internal Show documentation
Show all versions of devutility.internal Show documentation
Some utilities for Java development
package devutility.internal.test.data.model;
import java.util.Arrays;
import devutility.internal.annotations.NeedToken;
import devutility.internal.models.BaseSearchParam;
public class StudentSearchParam extends BaseSearchParam {
private String[] numbers;
public String[] getNumbers() {
return numbers;
}
public void setNumbers(String[] numbers) {
this.numbers = numbers;
}
@NeedToken
public String testNeetToken() {
return null;
}
@Override
protected void buildPredicate() {
if (numbers != null && numbers.length > 0) {
predicateBuilder.and(i -> Arrays.asList(numbers).contains(i.getNumber()));
}
}
}