Package com.ibm.icu.util
Class Currency.CurrencyNameResultHandler
java.lang.Object
com.ibm.icu.util.Currency.CurrencyNameResultHandler
- All Implemented Interfaces:
TextTrieMap.ResultHandler<Currency.CurrencyStringInfo>
- Enclosing class:
Currency
private static class Currency.CurrencyNameResultHandler
extends Object
implements TextTrieMap.ResultHandler<Currency.CurrencyStringInfo>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
handlePrefixMatch
(int matchLength, Iterator<Currency.CurrencyStringInfo> values) Handles a prefix key match
-
Field Details
-
bestMatchLength
private int bestMatchLength -
bestCurrencyISOCode
-
-
Constructor Details
-
CurrencyNameResultHandler
private CurrencyNameResultHandler()
-
-
Method Details
-
handlePrefixMatch
Description copied from interface:TextTrieMap.ResultHandler
Handles a prefix key match- Specified by:
handlePrefixMatch
in interfaceTextTrieMap.ResultHandler<Currency.CurrencyStringInfo>
- Parameters:
matchLength
- Matched key's lengthvalues
- An iterator of the objects associated with the matched key- Returns:
- Return true to continue the search in the trie, false to quit.
-
getBestCurrencyISOCode
-
getBestMatchLength
public int getBestMatchLength()
-