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

io.github.jakaarl.iban.spi.IbanValidation Maven / Gradle / Ivy

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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy