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 java.lang.Object implements TextTrieMap.ResultHandler<Currency.CurrencyStringInfo>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
bestCurrencyISOCode
private int
bestMatchLength
-
Constructor Summary
Constructors Modifier Constructor Description private
CurrencyNameResultHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBestCurrencyISOCode()
int
getBestMatchLength()
boolean
handlePrefixMatch(int matchLength, java.util.Iterator<Currency.CurrencyStringInfo> values)
Handles a prefix key match
-
-
-
Method Detail
-
handlePrefixMatch
public boolean handlePrefixMatch(int matchLength, java.util.Iterator<Currency.CurrencyStringInfo> values)
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
public java.lang.String getBestCurrencyISOCode()
-
getBestMatchLength
public int getBestMatchLength()
-
-