src.main.java.com.github.toolarium.security.checkdigit.IModulo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolarium-security Show documentation
Show all versions of toolarium-security Show documentation
Defines the security library to cover common patterns.
/*
* IModulo.java
*
* Copyright by toolarium, all rights reserved.
*/
package com.github.toolarium.security.checkdigit;
/**
* Defines the modulo digest api.
*
* @author patrick
*/
public interface IModulo {
/**
* Validate a number if modulo is valid
*
* @param data the number to be checked
* @return true if it is valid; otherwise false
*/
boolean validate(String data);
/**
* Calculate the modulo of the given string.
*
* @param data the data to parse
* @return the modulo result
*/
T createCheckDigit(String data);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy