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

de.thksystems.validation.beanvalidation.CurrencyValidator Maven / Gradle / Ivy

Go to download

Commons for persistence, hibernate, xstreams, enterprise, spring, servlets, ...

There is a newer version: 3.9.0
Show newest version
/*
 * tksCommons / mugwort
 * 
 * Author : Thomas Kuhlmann (ThK-Systems, http://www.thk-systems.de) License : LGPL (https://www.gnu.org/licenses/lgpl.html)
 */
package de.thksystems.validation.beanvalidation;

import java.util.function.Predicate;

import de.thksystems.util.text.LocaleUtils;

public class CurrencyValidator extends AbstractValueValidator {

	@Override
	protected Predicate getPredicate() {
		return o -> LocaleUtils.isValidCurrencyCode(o.toString());
	}
}