aicas logoJamaica 3.2 release 62

sun.text
Class UCompactIntArray

java.lang.Object
  extended by sun.text.UCompactIntArray
All Implemented Interfaces:
Cloneable

public final class UCompactIntArray
extends Object
implements Cloneable


Constructor Summary
UCompactIntArray()
          Default constructor for UCompactIntArray, the default value of the compact array is 0.
UCompactIntArray(int defaultValue)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UCompactIntArray

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


UCompactIntArray

public UCompactIntArray(int defaultValue)
Method Detail

elementAt

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

setElementAt

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

compact

public void compact()
Compact the array.


getKSize

public int getKSize()

aicas logoJamaica 3.2 release 62

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2008 aicas GmbH. All Rights Reserved.