Class SimpleFieldFragList

    • Constructor Detail

      • SimpleFieldFragList

        public SimpleFieldFragList​(int fragCharSize)
        a constructor.
        fragCharSize - the length (number of chars) of a fragment
    • Method Detail

      • add

        public void add​(int startOffset,
                        int endOffset,
                        java.util.List<FieldPhraseList.WeightedPhraseInfo> phraseInfoList)
        Description copied from class: FieldFragList
        convert the list of WeightedPhraseInfo to WeightedFragInfo, then add it to the fragInfos
        Specified by:
        add in class FieldFragList
        startOffset - start offset of the fragment
        endOffset - end offset of the fragment
        phraseInfoList - list of WeightedPhraseInfo objects