io.github.jakaarl.iban.spi.IbanValidation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iban-validator Show documentation
Show all versions of iban-validator Show documentation
A Java library for IBAN validation
The newest version!
package io.github.jakaarl.iban.spi;
import java.util.ServiceLoader;
import io.github.jakaarl.iban.Iban;
/**
* Interface for IBAN validations.
*
* @see IbanValidationService
* @see ServiceLoader
*/
public interface IbanValidation {
/**
* Checks if this validation can validate the given IBAN.
*
* @param iban IBAN to check.
*
* @return true
if able to validate.
*/
boolean canValidate(Iban iban);
/**
* Checks if given IBAN is valid.
*
* @param iban IBAN to check.
*
* @return true
if valid.
*/
boolean isValid(Iban iban);
}