org.mmbase.util
Class Matcher

java.lang.Object
  |
  +--org.mmbase.util.Matcher

public class Matcher
extends java.lang.Object

Class for matching two strings and returning an indicator (threshold) on how these compare. The returned value of match(java.lang.String, java.lang.String) is 0 when no maytch is found, 1 if it is a perfect match. Values in between indicate the level of partial matchings.


Constructor Summary
Matcher()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static float match(java.lang.String firstString, java.lang.String secondString)
          This method will match two string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matcher

public Matcher()
Method Detail

main

public static void main(java.lang.String[] args)

match

public static float match(java.lang.String firstString,
                          java.lang.String secondString)
This method will match two string. It will return a treshold, 0 indicates absolutely no match, 1 means perfect match.


MMBase 2001