public final class

UCompactIntArray

extends Object
implements Cloneable
java.lang.Object
   ↳ sun.text.UCompactIntArray

Summary

Public Constructors
UCompactIntArray()
Default constructor for UCompactIntArray, the default value of the compact array is 0.
UCompactIntArray(int defaultValue)
Public Methods
void compact()
Compact the array.
int elementAt(int index)
Get the mapped value of a Unicode character.
int getKSize()
void setElementAt(int index, int value)
Set a new value for a Unicode character.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UCompactIntArray ()

Default constructor for UCompactIntArray, the default value of the compact array is 0.

public UCompactIntArray (int defaultValue)

Public Methods

public void compact ()

Compact the array.

public int elementAt (int index)

Get the mapped value of a Unicode character.

Parameters
index the character to get the mapped value with
Returns
  • the mapped value of the given character

public int getKSize ()

public void setElementAt (int index, int value)

Set a new value for a Unicode character. Set automatically expands the array if it is compacted.

Parameters
index the character to set the mapped value with
value the new mapped value