net.sourceforge.wurfl.core.handlers.matchers.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 432 2010-05-06 12:12:53Z filippo.deluca $
- Author:
- Fantayeneh Asres Gizaw, Filippo De Luca
|
Method Summary |
String |
match(SortedSet userAgentsSet,
String needle,
int tollerance)
Match the given user-agent to the user-agent map to obtain device id. |
match
String match(SortedSet userAgentsSet,
String needle,
int tollerance)
- 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.tollerance - The tolerance accepted for the matching.
- Returns:
- The device id matched by the given user-agent.
Copyright © 2008-2010 WURFL-Pro srl. All Rights Reserved.