All Downloads are FREE. Search and download functionalities are using the official Maven repository.

devutility.internal.test.data.model.StudentSearchParam Maven / Gradle / Ivy

There is a newer version: 1.3.8.1
Show newest version
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()));
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy