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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
findValue(java.lang.CharSequence key, UResource.Value value)
boolean
getKeyAndValue(int i, UResource.Key key, UResource.Value value)
int
getSize()
-
-
-
Method Detail
-
getSize
int getSize()
- Returns:
- The number of items in the table resource.
-
getKeyAndValue
boolean getKeyAndValue(int i, UResource.Key key, UResource.Value value)
- 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
boolean findValue(java.lang.CharSequence key, UResource.Value value)
- 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.
-
-