Package com.ibm.icu.impl
Interface UResource.Table
- All Known Implementing Classes:
ICUResourceBundleReader.Table
,ICUResourceBundleReader.Table16
,ICUResourceBundleReader.Table1632
,ICUResourceBundleReader.Table32
- Enclosing class:
- UResource
public static interface UResource.Table
Interface for iterating over a resource bundle table resource.
Does not use Java Iterator to reduce object creations.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
findValue
(CharSequence key, UResource.Value value) boolean
getKeyAndValue
(int i, UResource.Key key, UResource.Value value) int
getSize()
-
Method Details
-
getSize
int getSize()- Returns:
- The number of items in the table resource.
-
getKeyAndValue
- Parameters:
i
- Table item index.key
- Output-only, receives the key of the i'th item.value
- Output-only, receives the value of the i'th item.- Returns:
- true if i is non-negative and less than getSize().
-
findValue
- Parameters:
key
- Key string to find in the table.value
- Output-only, receives the value of the item with that key.- Returns:
- true if the table contains the key.
-