public SuggestionGroup(AnnotationSuggestion... aItems) { suggestions = new ArrayList<>(asList(aItems)); sorted = suggestions.size() < 2; if (!suggestions.isEmpty()) { offset = suggestions.get(0).getOffset(); feature = get(0).getFeature(); layerId = get(0).getLayerId(); documentName = get(0).getDocumentName(); } }
AnnotationSuggestion top = get(0); return singletonMap(top.getRecommenderId(), asList(new Delta(top)));
AnnotationSuggestion top = get(0); if (top.isVisible()) { return singletonMap(top.getRecommenderId(), new Delta(top));
AnnotationSuggestion representative = get(0); Validate.isTrue( representative.getBegin() == aSuggestion.getBegin() &&