Deprecated
This API is ICU internal only.
CompactCharArray
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv byte | |
| private int[] | |
| private static final int | |
| private static final int | |
| private char[] | |
| private boolean | |
| public static final int | UNICODECOUNT
The total number of Unicode characters. |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public | CompactByteArray()
Deprecated
This API is ICU internal only.
Default constructor for CompactByteArray, the default value of the
compact array is 0.
|
| public | CompactByteArray(byte
the default value of the compact array. defaultValue)
Deprecated
This API is ICU internal only.
Constructor for CompactByteArray.
|
| public | CompactByteArray(char[]
the indices of the compact array. indexArray, byte[] the values of the compact array. newValues)
Deprecated
This API is ICU internal only.
Constructor for CompactByteArray.
|
| public | CompactByteArray(String
the RLE-encoded indices of the compact array. indexArray, String the RLE-encoded values of the compact array. valueArray)
Deprecated
This API is ICU internal only.
Constructor for CompactByteArray.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static final boolean | arrayRegionMatches(byte[] source, int sourceStart, byte[] target, int targetStart, int
the length to compare.
The start indices and start+len must be valid. len)Convenience utility to compare two arrays of doubles. |
| private final boolean | |
| public Object | clone()
Overrides java.
Deprecated
This API is ICU internal only.
Overrides Cloneable
|
| public void | |
| public void | |
| public byte | Returns: the mapped value of the given characterthe character to get the mapped value with index)
Deprecated
This API is ICU internal only.
Get the mapped value of a Unicode character.
|
| public boolean | Returns: true if the current compact array object is the same as the compact array object obj; false otherwise.the compact array object to be compared with this. obj)Overrides java.
Deprecated
This API is ICU internal only.
Compares the equality of two compact array objects.
|
| private void | |
| public char[] | |
| public byte[] | |
| public int | hashCode()
Overrides java.
Deprecated
This API is ICU internal only.
Generates the hash code for the compact array object
|
| public void | setElementAt(char
the character to set the mapped value with index, byte the new mapped value value)
Deprecated
This API is ICU internal only.
Set a new value for a Unicode character.
|
| public void | setElementAt(char
the starting offset of the range start, char the ending offset of the range end, byte the new mapped value value)
Deprecated
This API is ICU internal only.
Set new values for a range of Unicode character.
|
| private final void |
| BLOCKCOUNT | back to summary |
|---|---|
| private static final int BLOCKCOUNT | |
| BLOCKMASK | back to summary |
|---|---|
| private static final int BLOCKMASK | |
| BLOCKSHIFT | back to summary |
|---|---|
| private static final int BLOCKSHIFT | |
| defaultValue | back to summary |
|---|---|
| pack-priv byte defaultValue | |
| hashes | back to summary |
|---|---|
| private int[] hashes | |
| INDEXCOUNT | back to summary |
|---|---|
| private static final int INDEXCOUNT | |
| INDEXSHIFT | back to summary |
|---|---|
| private static final int INDEXSHIFT | |
| indices | back to summary |
|---|---|
| private char[] indices | |
| isCompact | back to summary |
|---|---|
| private boolean isCompact | |
| UNICODECOUNT | back to summary |
|---|---|
| public static final int UNICODECOUNT
Deprecated This API is ICU internal only. The total number of Unicode characters.
| |
| values | back to summary |
|---|---|
| private byte[] values | |
| CompactByteArray | back to summary |
|---|---|
| public CompactByteArray()
Deprecated This API is ICU internal only. Default constructor for CompactByteArray, the default value of the compact array is 0.
| |
| CompactByteArray | back to summary |
|---|---|
| public CompactByteArray(byte defaultValue)
Deprecated This API is ICU internal only. Constructor for CompactByteArray.
| |
| CompactByteArray | back to summary |
|---|---|
| public CompactByteArray(char[] indexArray, byte[] newValues)
Deprecated This API is ICU internal only. Constructor for CompactByteArray.
| |
| CompactByteArray | back to summary |
|---|---|
| public CompactByteArray(String indexArray, String valueArray)
Deprecated This API is ICU internal only. Constructor for CompactByteArray.
| |
| arrayRegionMatches | back to summary |
|---|---|
| pack-priv static final boolean arrayRegionMatches(byte[] source, int sourceStart, byte[] target, int targetStart, int len) Convenience utility to compare two arrays of doubles.
| |
| blockTouched | back to summary |
|---|---|
| private final boolean blockTouched(int i) Query whether a specified block was "touched", i.e. had a value set. Untouched blocks can be skipped when compacting the array | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Deprecated This API is ICU internal only. Overrides Cloneable
| |
| compact | back to summary |
|---|---|
| public void compact()
Deprecated This API is ICU internal only. Compact the array.
| |
| compact | back to summary |
|---|---|
| public void compact(boolean exhaustive)
Deprecated This API is ICU internal only. Compact the array.
| |
| elementAt | back to summary |
|---|---|
| public byte elementAt(char index)
Deprecated This API is ICU internal only. Get the mapped value of a Unicode character.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Deprecated This API is ICU internal only. Compares the equality of two compact array objects. | |
| expand | back to summary |
|---|---|
| private void expand() Expanding takes the array back to a 65536 element array. | |
| getIndexArray | back to summary |
|---|---|
| public char[] getIndexArray()
Deprecated This API is ICU internal only. For internal use only. Do not modify the result, the behavior of modified results are undefined.
| |
| getValueArray | back to summary |
|---|---|
| public byte[] getValueArray()
Deprecated This API is ICU internal only. For internal use only. Do not modify the result, the behavior of modified results are undefined.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Deprecated This API is ICU internal only. Generates the hash code for the compact array object
| |
| setElementAt | back to summary |
|---|---|
| public void setElementAt(char index, byte value)
Deprecated This API is ICU internal only. Set a new value for a Unicode character. Set automatically expands the array if it is compacted.
| |
| setElementAt | back to summary |
|---|---|
| public void setElementAt(char start, char end, byte value)
Deprecated This API is ICU internal only. Set new values for a range of Unicode character.
| |
| touchBlock | back to summary |
|---|---|
| private final void touchBlock(int i, int value) Remember that a specified block was "touched", i.e. had a value set. Untouched blocks can be skipped when compacting the array | |