public FieldFragList createFieldFragList(FieldPhraseList fieldPhraseList,int fragCharSize) {FieldFragList ffl = new SimpleFieldFragList( fragCharSize );List<WeightedPhraseInfo> wpil = new ArrayList<>();Iterator<WeightedPhraseInfo> ite = fieldPhraseList.phraseList.iterator();WeightedPhraseInfo phraseInfo = null;while( true ){if( !ite.hasNext() ) break;phraseInfo = ite.next();if( phraseInfo == null ) break;wpil.add( phraseInfo );}if( wpil.size() > 0 )ffl.add( 0, Integer.MAX_VALUE, wpil );return ffl;}

public FieldFragList createFieldFragList ( FieldPhraseList fieldPhraseList , int fragCharSize ) { FieldFragList ffl = new SimpleFieldFragList ( fragCharSize ) ; List < WeightedPhraseInfo > wpil = new ArrayList < > ( ) ; Iterator < WeightedPhraseInfo > ite = fieldPhraseList . phraseList . iterator ( ) ; WeightedPhraseInfo phraseInfo = null ; while ( true ) { if ( ! ite . hasNext ( ) ) break ; phraseInfo = ite . next ( ) ; if ( phraseInfo == null ) break ; wpil . add ( phraseInfo ) ; } if ( wpil . size ( ) > 0 ) ffl . add ( 0 , Integer . MAX_VALUE , wpil ) ; return ffl ; }
public virtual FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList,int fragCharSize){FieldFragList ffl = new SimpleFieldFragList(fragCharSize);List<WeightedPhraseInfo> wpil = new List<WeightedPhraseInfo>();using (IEnumerator<WeightedPhraseInfo> ite = fieldPhraseList.PhraseList.GetEnumerator()){WeightedPhraseInfo phraseInfo = null;while (true){if (!ite.MoveNext()) break;phraseInfo = ite.Current;if (phraseInfo == null) break;wpil.Add(phraseInfo);}if (wpil.Count > 0)ffl.Add(0, int.MaxValue, wpil);return ffl;}}
