APIdia Launch Partner
Top Fields Constructors Methods
sun.text

public final Class UCompactIntArray

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private static final int
private boolean[][]
private static final int
private int
private static final int
private static final int
private short[][]
private boolean
private static final int
private static final int
private static final int
private boolean[]
private static final int
private int[][]

Constructor Summary

AccessConstructor and Description
public
UCompactIntArray()

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

public
UCompactIntArray(int defaultValue)

Method Summary

Modifier and TypeMethod and Description
public void
compact()

Compact the array.

public int

Returns:

the mapped value of the given character
elementAt
(int
the character to get the mapped value with
index
)

Get the mapped value of a Unicode character.

private void
expand()

Expanded takes the array back to a 0x10ffff element array

public int
private void
initPlane(int plane)

public void
setElementAt(int
the character to set the mapped value with
index
,
int
the new mapped value
value
)

Set a new value for a Unicode character.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BLOCKCOUNTback to summary
private static final int BLOCKCOUNT
BLOCKMASKback to summary
private static final int BLOCKMASK
BLOCKSHIFTback to summary
private static final int BLOCKSHIFT
blockTouchedback to summary
private boolean[][] blockTouched
CODEPOINTMASKback to summary
private static final int CODEPOINTMASK
defaultValueback to summary
private int defaultValue
INDEXCOUNTback to summary
private static final int INDEXCOUNT
INDEXSHIFTback to summary
private static final int INDEXSHIFT
indicesback to summary
private short[][] indices
isCompactback to summary
private boolean isCompact
PLANECOUNTback to summary
private static final int PLANECOUNT
PLANEMASKback to summary
private static final int PLANEMASK
PLANESHIFTback to summary
private static final int PLANESHIFT
planeTouchedback to summary
private boolean[] planeTouched
UNICODECOUNTback to summary
private static final int UNICODECOUNT
valuesback to summary
private int[][] values

Constructor Detail

UCompactIntArrayback to summary
public UCompactIntArray()

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

UCompactIntArrayback to summary
public UCompactIntArray(int defaultValue)

Method Detail

compactback to summary
public void compact()

Compact the array.

elementAtback to summary
public int elementAt(int index)

Get the mapped value of a Unicode character.

Parameters
index:int

the character to get the mapped value with

Returns:int

the mapped value of the given character

expandback to summary
private void expand()

Expanded takes the array back to a 0x10ffff element array

getKSizeback to summary
public int getKSize()
initPlaneback to summary
private void initPlane(int plane)
setElementAtback to summary
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:int

the character to set the mapped value with

value:int

the new mapped value