/** Creates a new {@link CodingAnnotationItem} which has been coded with * the given annotation categories. Note that the order of the categories * must correspond to the raters' indexes. Use null to represent missing * annotations, Invoking <code>addItem("A", "B", null, "A")</code> * indicates an annotation item which has been coded as category "A" * by rater 0 and 3 and as category "B" by rater 1. Rater 2 did not * assign any category to the item. The method is a shorthand for * {@link #addItemAsArray(Object[])}. */ public ICodingAnnotationItem addItem(final Object... annotations) { return addItemAsArray(annotations); }
/** Shorthand for invoking {@link #addItem(Object...)} with the same * parameters multiple times. This method is useful for modeling * annotation data based on a contingency table. */ public void addMultipleItems(int times, final Object... values) { for (int i = 0; i < times; i++) addItemAsArray(values); }
study.addItemAsArray(values);