Java™ Platform
Standard Ed. 8
- Detail:
- Field |
- Constr |
- Method
compact1, compact2, compact3
java.text
Interface AttributedCharacterIterator
-
-
Method Detail
-
getRunStart
int getRunStart()
Returns the index of the first character of the run
with respect to all attributes containing the current character.
Any contiguous text segments having the same attributes (the
same set of attribute/value pairs) are treated as separate runs
if the attributes have been given to those text segments separately.
- Returns:
- the index of the first character of the run
-
getRunStart
int getRunStart(Set<? extends AttributedCharacterIterator.Attribute> attributes)
Returns the index of the first character of the run
with respect to the given attributes containing the current character.
- Parameters:
attributes - a set of the desired attributes.
- Returns:
- the index of the first character of the run
-
getRunLimit
int getRunLimit()
Returns the index of the first character following the run
with respect to all attributes containing the current character.
Any contiguous text segments having the same attributes (the
same set of attribute/value pairs) are treated as separate runs
if the attributes have been given to those text segments separately.
- Returns:
- the index of the first character following the run
-
getRunLimit
int getRunLimit(Set<? extends AttributedCharacterIterator.Attribute> attributes)
Returns the index of the first character following the run
with respect to the given attributes containing the current character.
- Parameters:
attributes - a set of the desired attributes
- Returns:
- the index of the first character following the run
Java™ Platform
Standard Ed. 8
- Detail:
- Field |
- Constr |
- Method
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.