]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_4_2-src/tools/misc/src/com/ibm/icu/dev/tool/layout/LigatureEntry.java
go
[Dictionary.git] / jars / icu4j-4_4_2-src / tools / misc / src / com / ibm / icu / dev / tool / layout / LigatureEntry.java
1 /*\r
2  *******************************************************************************\r
3  * Copyright (C) 1998-2004, International Business Machines Corporation and    *\r
4  * others. All Rights Reserved.                                                *\r
5  *******************************************************************************\r
6  *\r
7  * Created on Dec 3, 2003\r
8  *\r
9  *******************************************************************************\r
10  */\r
11 package com.ibm.icu.dev.tool.layout;\r
12 \r
13 public class LigatureEntry\r
14 {\r
15     private int[] componentChars;\r
16     private int ligature;\r
17     \r
18     public LigatureEntry(int ligature, int[] componentChars, int componentCount)\r
19     {\r
20         this.componentChars = new int[componentCount];\r
21         this.ligature = ligature;\r
22         System.arraycopy(componentChars, 0, this.componentChars, 0, componentCount);\r
23 }\r
24     \r
25     public int getComponentCount()\r
26     {\r
27         return componentChars.length;\r
28     }\r
29     \r
30     public int getComponentChar(int componentIndex)\r
31     {\r
32         return componentChars[componentIndex];\r
33     }\r
34     \r
35     public int getLigature()\r
36     {\r
37         return ligature;\r
38     }\r
39 }\r