public static class ICUResource.TableSink extends Object
Nested arrays and tables are stored as nested sinks,
never put() as ICUResource.Value items.
| Constructor and Description |
|---|
TableSink() |
| Modifier and Type | Method and Description |
|---|---|
ICUResource.ArraySink |
getOrCreateArraySink(ICUResource.Key key,
int size)
Returns a nested resource array for the key as another sink.
|
ICUResource.TableSink |
getOrCreateTableSink(ICUResource.Key key,
int initialSize)
Returns a nested resource table for the key as another sink.
|
void |
put(ICUResource.Key key,
ICUResource.Value value)
Adds a key-value pair from a resource table.
|
void |
putNoFallback(ICUResource.Key key)
Adds a no-fallback/no-inheritance marker for this key.
|
public void put(ICUResource.Key key, ICUResource.Value value)
key - resource key stringvalue - resource valuepublic void putNoFallback(ICUResource.Key key)
The default implementation does nothing.
key - to be removedpublic ICUResource.ArraySink getOrCreateArraySink(ICUResource.Key key, int size)
key - resource key stringsize - number of array itemspublic ICUResource.TableSink getOrCreateTableSink(ICUResource.Key key, int initialSize)
key - resource key stringinitialSize - size hint for creating the sink if necessary