public interface TAttributedCharacterIterator extends TCharacterIterator
Modifier and Type | Interface and Description |
---|---|
static class |
TAttributedCharacterIterator.Attribute |
DONE
Modifier and Type | Method and Description |
---|---|
TSet<TAttributedCharacterIterator.Attribute> |
getAllAttributeKeys()
Returns a set of attributes present in the
AttributedCharacterIterator . |
Object |
getAttribute(TAttributedCharacterIterator.Attribute attribute)
Returns the value stored in the attribute for the current character.
|
TMap<TAttributedCharacterIterator.Attribute,Object> |
getAttributes()
Returns a map of all attributes of the current character.
|
int |
getRunLimit()
Returns the index of the last character in the run having the same
attributes as the current character.
|
int |
getRunLimit(TAttributedCharacterIterator.Attribute attribute)
Returns the index of the last character in the run that has the same
attribute value for the given attribute as the current character.
|
int |
getRunLimit(TSet<? extends TAttributedCharacterIterator.Attribute> attributes)
Returns the index of the last character in the run that has the same
attribute values for the attributes in the set as the current character.
|
int |
getRunStart()
Returns the index of the first character in the run that has the same
attributes as the current character.
|
int |
getRunStart(TAttributedCharacterIterator.Attribute attribute)
Returns the index of the first character in the run that has the same
attribute value for the given attribute as the current character.
|
int |
getRunStart(TSet<? extends TAttributedCharacterIterator.Attribute> attributes)
Returns the index of the first character in the run that has the same
attribute values for the attributes in the set as the current character.
|
clone, current, first, getBeginIndex, getEndIndex, getIndex, last, next, previous, setIndex
TSet<TAttributedCharacterIterator.Attribute> getAllAttributeKeys()
AttributedCharacterIterator
. An empty set is returned if no attributes
were defined.Object getAttribute(TAttributedCharacterIterator.Attribute attribute)
null
is returned.attribute
- the attribute for which the value should be returned.null
if it was not defined.TMap<TAttributedCharacterIterator.Attribute,Object> getAttributes()
int getRunLimit()
int getRunLimit(TAttributedCharacterIterator.Attribute attribute)
attribute
- the attribute which the run is based on.int getRunLimit(TSet<? extends TAttributedCharacterIterator.Attribute> attributes)
attributes
- the set of attributes which the run is based on.int getRunStart()
int getRunStart(TAttributedCharacterIterator.Attribute attribute)
attribute
- the attribute which the run is based on.int getRunStart(TSet<? extends TAttributedCharacterIterator.Attribute> attributes)
attributes
- the set of attributes which the run is based on.Copyright © 2019. All rights reserved.