jdk/src/java.base/share/classes/sun/text/CompactByteArray.java
changeset 30655 d83f50188ca9
parent 25859 3317bb8137f4
child 32649 2ee9017c7597
equal deleted inserted replaced
30654:3c2e826aa5ea 30655:d83f50188ca9
    47  * significant values while the rest of the Unicode data is unused in the
    47  * significant values while the rest of the Unicode data is unused in the
    48  * application or when you have a lot of redundance, such as where all 21,000
    48  * application or when you have a lot of redundance, such as where all 21,000
    49  * Han ideographs have the same value.  However, lookup is much faster than a
    49  * Han ideographs have the same value.  However, lookup is much faster than a
    50  * hash table.
    50  * hash table.
    51  * A compact array of any primitive data type serves two purposes:
    51  * A compact array of any primitive data type serves two purposes:
    52  * <UL type = round>
    52  * <UL type = circle>
    53  *     <LI>Fast access of the indexed values.
    53  *     <LI>Fast access of the indexed values.
    54  *     <LI>Smaller memory footprint.
    54  *     <LI>Smaller memory footprint.
    55  * </UL>
    55  * </UL>
    56  * A compact array is composed of a index array and value array.  The index
    56  * A compact array is composed of a index array and value array.  The index
    57  * array contains the indicies of Unicode characters to the value array.
    57  * array contains the indicies of Unicode characters to the value array.