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

org.tudalgo.algoutils.reflect.IdentifierMatcher Maven / Gradle / Ivy

The newest version!
package org.tudalgo.algoutils.reflect;

/**
 * An identifier Matcher.
 *  * This class is deprecated and will be removed in a future release.
 *  * Use the new API located in the {@link org.tudalgo.algoutils.tutor.general.reflections} package instead.
 *
 * @author Ruben Deisenroth
 */
@Deprecated(since = "0.7.0", forRemoval = true)
public class IdentifierMatcher {

    /**
     * The name to match.
     */
    public String identifierName;
    /**
     * The package name.
     */
    public String packageName;
    /**
     * The minimum required similarity.
     */
    public double similarity;

    /**
     * Constructs and initializes an identifier matcher to match the specified identifier.
     *
     * @param identifierName the identifier to match
     * @param packageName    the package name
     * @param similarity     the minimum required similarity
     */
    public IdentifierMatcher(final String identifierName, final String packageName, final double similarity) {
        this.identifierName = identifierName;
        this.packageName = packageName;
        this.similarity = similarity;
    }

    /**
     * Constructs and initializes an identifier matcher to match the specified identifier.
     *
     * @param identifierName the identifier to match
     * @param similarity     the minimum required similarity
     */
    public IdentifierMatcher(final String identifierName, final double similarity) {
        this(identifierName, null, similarity);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy