Lines Matching refs:iterator

92          * begin, end, and current index as this attributed iterator.
94 * @return a shallow copy of this attributed iterator.
163 Iterator<Range> it = ranges.iterator();
192 .entrySet().iterator();
207 Iterator<Range> it = ranges.iterator();
235 .entrySet().iterator();
286 Iterator<? extends Attribute> it = attributes.iterator();
303 Iterator<Range> it = ranges.iterator();
334 Iterator<? extends Attribute> it = attributes.iterator();
384 * @param iterator
388 public AttributedString(AttributedCharacterIterator iterator) {
389 if (iterator.getBeginIndex() > iterator.getEndIndex()) {
393 for (int i = iterator.getBeginIndex(); i < iterator.getEndIndex(); i++) {
394 buffer.append(iterator.current());
395 iterator.next();
398 Set<AttributedCharacterIterator.Attribute> attributes = iterator
406 Iterator<Attribute> it = attributes.iterator();
409 iterator.setIndex(0);
410 while (iterator.current() != CharacterIterator.DONE) {
411 int start = iterator.getRunStart(attribute);
412 int limit = iterator.getRunLimit(attribute);
413 Object value = iterator.getAttribute(attribute);
417 iterator.setIndex(limit);
422 private AttributedString(AttributedCharacterIterator iterator, int start,
424 if (start < iterator.getBeginIndex() || end > iterator.getEndIndex()
434 iterator.setIndex(start);
435 while (iterator.getIndex() < end) {
436 buffer.append(iterator.current());
437 iterator.next();
443 Iterator<Attribute> it = attributes.iterator();
446 iterator.setIndex(start);
447 while (iterator.getIndex() < end) {
448 Object value = iterator.getAttribute(attribute);
449 int runStart = iterator.getRunStart(attribute);
450 int limit = iterator.getRunLimit(attribute);
457 iterator.setIndex(limit);
468 * @param iterator
477 * {@code iterator}, {@code end} is greater than the last
478 * index + 1 in {@code iterator} or if {@code start > end}.
480 public AttributedString(AttributedCharacterIterator iterator, int start,
482 this(iterator, start, end, iterator.getAllAttributeKeys());
492 * @param iterator
504 * {@code iterator}, {@code end} is greater than the last index +
505 * 1 in {@code iterator} or if {@code start > end}.
507 public AttributedString(AttributedCharacterIterator iterator, int start,
509 this(iterator, start, end, (attributes == null
553 Iterator<?> it = attributes.entrySet().iterator();
709 Iterator<?> it = attributes.entrySet().iterator();
731 * {@code attributes} are available from this iterator if they are defined
736 * iterator if they are defined for this text.
748 * available from this iterator if they are defined for this text.
752 * iterator if they are defined for this text.
754 * the start index of the iterator on the underlying text.
756 * the end index of the iterator on the underlying text.