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

com.dooapp.gaedo.finders.collections.EndsWithEvaluator Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
package com.dooapp.gaedo.finders.collections;

import java.lang.reflect.Field;

import com.dooapp.gaedo.properties.Property;

public class EndsWithEvaluator extends AbstractBasicEvaluator
		implements Evaluator {

	private String end;

	public EndsWithEvaluator(Property fieldName, String end) {
		super(fieldName);
		this.end = end;
	}

	@Override
	public boolean matches(DataType element) {
		String value = (String) getValue(element);
		return value.endsWith(end);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy