org.tudalgo.algoutils.reflect.IdentifierMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algoutils-tutor Show documentation
Show all versions of algoutils-tutor Show documentation
Common utilities for the Fachgebiet Algorithmik of TU Darmstadt
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);
}
}