Deprecated
This API is ICU internal only.
CompactByteArray
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| public static final int | BLOCKSHIFT
Deprecated
This API is ICU internal only.
|
| pack-priv char | |
| private int[] | |
| pack-priv static final int | |
| pack-priv static final int | |
| private char[] | |
| private boolean | |
| public static final int | UNICODECOUNT
The total number of Unicode characters. |
| private char[] |
| Access | Constructor and Description |
|---|---|
| public | CompactCharArray()
Deprecated
This API is ICU internal only.
Default constructor for CompactCharArray, the default value of the
compact array is 0.
|
| public | CompactCharArray(char
the default value of the compact array. defaultValue)
Deprecated
This API is ICU internal only.
Constructor for CompactCharArray.
|
| public | CompactCharArray(char[]
the indices of the compact array. indexArray, char[] the values of the compact array. newValues)
Deprecated
This API is ICU internal only.
Constructor for CompactCharArray.
|
| public | CompactCharArray(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 CompactCharArray.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static final boolean | arrayRegionMatches(char[] source, int sourceStart, char[] 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 char | 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 | |
| private int | |
| public char[] | |
| public char[] | |
| 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, char 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, char 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 |
|---|---|
| pack-priv static final int BLOCKCOUNT | |
| BLOCKMASK | back to summary |
|---|---|
| pack-priv static final int BLOCKMASK | |
| BLOCKSHIFT | back to summary |
|---|---|
| public static final int BLOCKSHIFT
Deprecated This API is ICU internal only.
| |
| defaultValue | back to summary |
|---|---|
| pack-priv char defaultValue | |
| hashes | back to summary |
|---|---|
| private int[] hashes | |
| INDEXCOUNT | back to summary |
|---|---|
| pack-priv static final int INDEXCOUNT | |
| INDEXSHIFT | back to summary |
|---|---|
| pack-priv 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 char[] values | |
| CompactCharArray | back to summary |
|---|---|
| public CompactCharArray()
Deprecated This API is ICU internal only. Default constructor for CompactCharArray, the default value of the compact array is 0.
| |
| CompactCharArray | back to summary |
|---|---|
| public CompactCharArray(char defaultValue)
Deprecated This API is ICU internal only. Constructor for CompactCharArray.
| |
| CompactCharArray | back to summary |
|---|---|
| public CompactCharArray(char[] indexArray, char[] newValues)
Deprecated This API is ICU internal only. Constructor for CompactCharArray.
| |
| CompactCharArray | back to summary |
|---|---|
| public CompactCharArray(String indexArray, String valueArray)
Deprecated This API is ICU internal only. Constructor for CompactCharArray.
| |
| arrayRegionMatches | back to summary |
|---|---|
| pack-priv static final boolean arrayRegionMatches(char[] source, int sourceStart, char[] 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 char 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. | |
| FindOverlappingPosition | back to summary |
|---|---|
| private int FindOverlappingPosition(int start, char[] tempValues, int tempCount) | |
| 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 char[] 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, char 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, char 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 | |