1 // 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html#License 3 /* 4 ******************************************************************************* 5 * Copyright (C) 1998-2004, International Business Machines Corporation and * 6 * others. All Rights Reserved. * 7 ******************************************************************************* 8 * 9 * Created on Dec 3, 2003 10 * 11 ******************************************************************************* 12 */ 13 package com.ibm.icu.dev.tool.layout; 14 15 public class LigatureEntry 16 { 17 private int[] componentChars; 18 private int ligature; 19 20 public LigatureEntry(int ligature, int[] componentChars, int componentCount) 21 { 22 this.componentChars = new int[componentCount]; 23 this.ligature = ligature; 24 System.arraycopy(componentChars, 0, this.componentChars, 0, componentCount); 25 } 26 27 public int getComponentCount() 28 { 29 return componentChars.length; 30 } 31 32 public int getComponentChar(int componentIndex) 33 { 34 return componentChars[componentIndex]; 35 } 36 37 public int getLigature() 38 { 39 return ligature; 40 } 41 } 42