| Modifier and Type | Class and Description |
|---|---|
| public static interface | UResource.Array
Interface for iterating over a resource bundle array resource. |
| public static class | UResource.Key
Represents a resource bundle item's key string. |
| public abstract static class | UResource.Sink
Sink for ICU resource bundle contents. |
| public static interface | UResource.Table
Interface for iterating over a resource bundle table resource. |
| public abstract static class | UResource.Value
Represents a resource bundle item's value. |
| Access | Constructor and Description |
|---|---|
| public |
| UResource | back to summary |
|---|---|
| public UResource() | |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public boolean |
| getSize | back to summary |
|---|---|
public int getSize()
| |
| getValue | back to summary |
|---|---|
| public boolean getValue(int i, UResource. | |
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private int | |
| private int | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public char | charAt(int
the index of the i)char value to be returnedImplements java. char value at the specified index.
|
| public UResource. | |
| public int | compareTo(UResource.
the object to be compared. otherImplements java. |
| public int | compareTo(CharSequence
the object to be compared. cs)Implements java. |
| public boolean | |
| public boolean | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int | |
| private String | |
| public int | |
| private boolean | |
| private boolean | |
| public boolean | Returns: true if the substring of this key starting from the offset contains the same characters as the other sequence.
|
| public UResource. | setBytes(byte[]
new key string byte array keyBytes, int new key string offset keyOffset)Mutates this key for a new NUL-terminated resource key string. |
| public UResource. | |
| public UResource. | |
| public boolean | |
| public UResource. | subSequence(int
the start index, inclusive start, int the end index, exclusive end)Implements java. CharSequence that is a subsequence of this sequence.
|
| public String | |
| public String | substring(int start, int end)
Creates a new Java String for a sub-sequence of this resource key string. |
| public String | toString()
Overrides java. Implements java. |
| bytes | back to summary |
|---|---|
| private byte[] bytes | |
| length | back to summary |
|---|---|
| private int length | |
| offset | back to summary |
|---|---|
| private int offset | |
| s | back to summary |
|---|---|
| private String s | |
| Key | back to summary |
|---|---|
| public Key() Constructs an empty resource key string object. | |
| Key | back to summary |
|---|---|
| public Key(String s) Constructs a resource key object equal to the given string. | |
| Key | back to summary |
|---|---|
| private Key(byte[] keyBytes, int keyOffset, int keyLength) | |
| charAt | back to summary |
|---|---|
| public char charAt(int i) Implements java. Doc from java. Returns the If the
| |
| clone | back to summary |
|---|---|
| public UResource. Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| compareTo | back to summary |
|---|---|
| public int compareTo(UResource. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| compareTo | back to summary |
|---|---|
| public int compareTo(CharSequence cs) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| contentEquals | back to summary |
|---|---|
| public boolean contentEquals(CharSequence cs) | |
| endsWith | back to summary |
|---|---|
| public boolean endsWith(CharSequence cs) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| internalSubString | back to summary |
|---|---|
| private String internalSubString(int start, int end) | |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| regionMatches | back to summary |
|---|---|
| private boolean regionMatches(byte[] otherBytes, int otherOffset, int n) | |
| regionMatches | back to summary |
|---|---|
| private boolean regionMatches(int start, CharSequence cs, int n) | |
| regionMatches | back to summary |
|---|---|
public boolean regionMatches(int start, CharSequence cs)
| |
| setBytes | back to summary |
|---|---|
| public UResource. Mutates this key for a new NUL-terminated resource key string. The corresponding ASCII-character bytes are not copied and must not be changed during the lifetime of this key (or until the next setBytes() call) and lifetimes of subSequences created from this key.
| |
| setString | back to summary |
|---|---|
| public UResource. Mutates this key to be equal to the given string. | |
| setToEmpty | back to summary |
|---|---|
| public UResource. Mutates this key to an empty resource key string. | |
| startsWith | back to summary |
|---|---|
| public boolean startsWith(CharSequence cs) | |
| subSequence | back to summary |
|---|---|
| public UResource. Implements java. Doc from java. Returns a | |
| substring | back to summary |
|---|---|
| public String substring(int start) Creates a new Java String for a sub-sequence of this resource key string. | |
| substring | back to summary |
|---|---|
| public String substring(int start, int end) Creates a new Java String for a sub-sequence of this resource key string. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Creates/caches/returns this resource key string as a Java String.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | put(UResource.
Initially the key string of the enumeration-start resource.
Empty if the enumeration starts at the top level of the bundle.
Reuse for output values from Array and Table getters. key,Call getArray() or getTable() as appropriate.
Then reuse for output values from Array and Table getters. value,true if the bundle has no parent;
that is, its top-level table has the nofallback attribute,
or it is the root bundle of a locale tree. noFallback)Called once for each bundle (child-parent-...-root). |
| Sink | back to summary |
|---|---|
| public Sink() | |
| put | back to summary |
|---|---|
| public abstract void put(UResource. Called once for each bundle (child-parent-...-root). The value is normally an array or table resource, and implementations of this method normally iterate over the tree of resource items stored there.
| |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the table contains the key.Key string to find in the table. key, UResource.Output-only, receives the value of the item with that key. value
|
| public boolean | Returns: true if i is non-negative and less than getSize().Table item index. i, UResource.Output-only, receives the key of the i'th item. key,Output-only, receives the value of the i'th item. value
|
| public int |
| findValue | back to summary |
|---|---|
public boolean findValue(CharSequence key, UResource.
| |
| getKeyAndValue | back to summary |
|---|---|
| public boolean getKeyAndValue(int i, UResource. | |
| getSize | back to summary |
|---|---|
public int getSize()
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | |
| public abstract UResource. | |
| public abstract ByteBuffer | |
| public abstract int | |
| public abstract int[] | |
| public abstract String | |
| public abstract String[] | |
| public abstract String[] | getStringArrayOrStringAsArray()
Same as
if (getType() == STRING) {
return new String[] { getString(); }
} else {
return getStringArray();
}
|
| public abstract String | getStringOrFirstOfArray()
Same as
if (getType() == STRING) {
return getString();
} else {
return getStringArray()[0];
}
|
| public abstract UResource. | |
| public abstract int | |
| public abstract int | |
| public abstract boolean | Returns: true if this is a no-inheritance marker stringIs this a no-fallback/no-inheritance marker string? |
| public String |
| Value | back to summary |
|---|---|
| protected Value() | |
| getAliasString | back to summary |
|---|---|
public abstract String getAliasString()
| |
| getArray | back to summary |
|---|---|
public abstract UResource.
| |
| getBinary | back to summary |
|---|---|
public abstract ByteBuffer getBinary()
| |
| getInt | back to summary |
|---|---|
public abstract int getInt()
| |
| getIntVector | back to summary |
|---|---|
public abstract int[] getIntVector()
| |
| getString | back to summary |
|---|---|
public abstract String getString()
| |
| getStringArray | back to summary |
|---|---|
public abstract String[] getStringArray()
| |
| getStringArrayOrStringAsArray | back to summary |
|---|---|
| public abstract String[] getStringArrayOrStringAsArray() Same as
if (getType() == STRING) {
return new String[] { getString(); }
} else {
return getStringArray();
}
| |
| getStringOrFirstOfArray | back to summary |
|---|---|
| public abstract String getStringOrFirstOfArray() Same as
if (getType() == STRING) {
return getString();
} else {
return getStringArray()[0];
}
| |
| getTable | back to summary |
|---|---|
public abstract UResource.
| |
| getType | back to summary |
|---|---|
public abstract int getType()
| |
| getUInt | back to summary |
|---|---|
public abstract int getUInt()
| |
| isNoInheritanceMarker | back to summary |
|---|---|
| public abstract boolean isNoInheritanceMarker() Is this a no-fallback/no-inheritance marker string? Such a marker is used for CLDR no-fallback data values of "∅∅∅" when enumerating tables with fallback from the specific resource bundle to root.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Only for debugging.
| |