Home | History | Annotate | Download | only in makedict
      1 /*
      2  * Copyright (C) 2011 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of 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,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under 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 final 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 int mParentAddress;
     35     public final ArrayList<WeightedString> mShortcutTargets;
     36     public final ArrayList<PendingAttribute> mBigrams;
     37 
     38     public CharGroupInfo(final int originalAddress, final int endAddress, final int flags,
     39             final int[] characters, final int frequency, final int parentAddress,
     40             final int childrenAddress, final ArrayList<WeightedString> shortcutTargets,
     41             final ArrayList<PendingAttribute> bigrams) {
     42         mOriginalAddress = originalAddress;
     43         mEndAddress = endAddress;
     44         mFlags = flags;
     45         mCharacters = characters;
     46         mFrequency = frequency;
     47         mParentAddress = parentAddress;
     48         mChildrenAddress = childrenAddress;
     49         mShortcutTargets = shortcutTargets;
     50         mBigrams = bigrams;
     51     }
     52 }
     53