Beispiel #1
0
 public Row(Range numbers, List<InlineOperation> operations) {
   super();
   List<Integer> rowList = new ArrayList<Integer>();
   for (int i = numbers.getMinimumInteger(); i <= numbers.getMaximumInteger(); i++) {
     rowList.add(i);
   }
   this.numbers = toPrimitive(rowList.toArray(new Integer[0]));
   this.operations = operations;
 }
 private Snippet createSnippet(Range inMatch, int inExpandRadius, DocumentHolder inHolder)
     throws IOException {
   List<List<SnippetToken>> sentences =
       inHolder.expandPosition(inMatch.getMinimumInteger(), inExpandRadius);
   Snippet result = new Snippet();
   for (List<SnippetToken> sentence : sentences) {
     result.addSentence(sentence);
   }
   result.markRange(inMatch);
   return result;
 }