1 /* 2 * Copyright (C) 2011 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 5 * use this file except in compliance with the License. You may obtain a copy of 6 * the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 13 * License for the specific language governing permissions and limitations under 14 * the License. 15 */ 16 17 package com.android.inputmethod.latin.makedict; 18 19 import com.android.inputmethod.latin.makedict.FusionDictionary.WeightedString; 20 21 import java.util.ArrayList; 22 23 /** 24 * Raw char group info straight out of a file. This will contain numbers for addresses. 25 */ 26 public class CharGroupInfo { 27 28 public final int mOriginalAddress; 29 public final int mEndAddress; 30 public final int mFlags; 31 public final int[] mCharacters; 32 public final int mFrequency; 33 public final int mChildrenAddress; 34 public final ArrayList<WeightedString> mShortcutTargets; 35 public final ArrayList<PendingAttribute> mBigrams; 36 37 public CharGroupInfo(final int originalAddress, final int endAddress, final int flags, 38 final int[] characters, final int frequency, final int childrenAddress, 39 final ArrayList<WeightedString> shortcutTargets, 40 final ArrayList<PendingAttribute> bigrams) { 41 mOriginalAddress = originalAddress; 42 mEndAddress = endAddress; 43 mFlags = flags; 44 mCharacters = characters; 45 mFrequency = frequency; 46 mChildrenAddress = childrenAddress; 47 mShortcutTargets = shortcutTargets; 48 mBigrams = bigrams; 49 } 50 } 51