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

src.main.java.com.github.toolarium.security.checkdigit.IModulo Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
/*
 * 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