/** * Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty) * and returns the character at that position. */ public char last() { return reorderedACI.last(); }
/** * Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty) * and returns the character at that position. */ public char last() { return reorderedACI.last(); }
/** * Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty) * and returns the character at that position. */ public char last() { return reorderedACI.last(); }
public char last() { return aci.last(); }
/** {@inheritDoc} */ public char last() { this.currentList = this.realIterators.size() - 1; return this.realIterators.get(this.currentList).last(); }
/** * Starting from the current position looks for the end of the text run with * constant text attributes. * @param runStart - start position * @param maxPos - position where to stop if no run limit found * @return style run limit */ int getStyleRunLimit(int runStart, int maxPos) { try { aci.setIndex(runStart); } catch(IllegalArgumentException e) { // Index out of bounds if (runStart < segmentsStart) { aci.first(); } else { aci.last(); } } // If we have some extra runs we need to check for their limits if (forcedFontRunStarts != null) { for (int element : forcedFontRunStarts) { if (element > runStart) { maxPos = Math.min(element, maxPos); break; } } } return Math.min(aci.getRunLimit(), maxPos); }