/** * Returns an iterator for all annotation inside this * annotation bag or <code>null</code> if the bag is empty. * * @return an iterator for all annotations in the bag or <code>null</code> * @since 3.1 */ public Iterator<Annotation> iterator() { if (!isEmpty()) return fAnnotations.iterator(); return null; } }
/** * Returns an iterator for all annotation inside this * annotation bag or <code>null</code> if the bag is empty. * * @return an iterator for all annotations in the bag or <code>null</code> * @since 3.1 */ public Iterator<Annotation> iterator() { if (!isEmpty()) return fAnnotations.iterator(); return null; } }
if (!bag.isEmpty()) additions.put(bag, new Position(summaryAnchor.getOffset(), summaryAnchor.getLength()));
if (!bag.isEmpty()) additions.put(bag, new Position(summaryAnchor.getOffset(), summaryAnchor.getLength()));
if (!bag.isEmpty()) annotation= bag.iterator().next();