net.sourceforge.wurfl.core.strategy
Interface StringMatcher
- All Known Implementing Classes:
- LDMatcher, RISMatcher
public interface StringMatcher
Match a string in a ordered set of string, returning the best match.
- Version:
- $Id: StringMatcher.java 934 2012-03-27 13:34:26Z fulvio.crivellaro $
match
String match(Set<String> userAgentsSet,
String needle,
int tolerance)
- Match the given user-agent to the user-agent map to obtain device id.
- Parameters:
userAgentsSet - Had to containing the user-agent string naturally ordered.needle - The user-agent to match.tolerance - The tolerance accepted for the matching.
- Returns:
- The device id matched by the given user-agent.
getName
String getName()
Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.