Class FuzzyStringMatchFilter.ThresholdMatchingMethod<T extends Number>

java.lang.Object
com.evolveum.midpoint.prism.query.FuzzyStringMatchFilter.ThresholdMatchingMethod<T>
All Implemented Interfaces:
FuzzyStringMatchFilter.FuzzyMatchingMethod, Serializable
Direct Known Subclasses:
FuzzyStringMatchFilter.Levenshtein, FuzzyStringMatchFilter.Similarity
Enclosing interface:
FuzzyStringMatchFilter<T>

public abstract static class FuzzyStringMatchFilter.ThresholdMatchingMethod<T extends Number> extends Object implements FuzzyStringMatchFilter.FuzzyMatchingMethod
See Also:
  • Method Details

    • getThreshold

      public T getThreshold()
    • getThresholdRequired

      @NotNull public T getThresholdRequired()
    • isInclusive

      public boolean isInclusive()
    • computeMatchMetricValue

      @NotNull public abstract T computeMatchMetricValue(String lValue, String rValue)
      Computes the appropriate fuzzy match metric - the one that is being compared with the threshold. For example, Levenshtein edit distance (an integer value) or trigram similarity value (a float).
    • getMetricValueClass

      public abstract Class<T> getMetricValueClass()
      Returns the Java type of the metric being used by this method (Integer, Float, ...). TODO consider removal
    • getAttributes

      public Map<QName,Object> getAttributes()
      Specified by:
      getAttributes in interface FuzzyStringMatchFilter.FuzzyMatchingMethod
    • toString

      public String toString()
      Overrides:
      toString in class Object