public class SpanSet<E> extends Object
Spanned.getSpans(int, int, Class)
and then
provides faster access to Spanned.nextSpanTransition(int, int, Class)
.
Fields are left public for a convenient direct access.
Note that empty spans are ignored by this class.Modifier and Type | Method and Description |
---|---|
boolean |
hasSpansIntersecting(int start,
int end)
Returns true if there are spans intersecting the given interval.
|
void |
init(Spanned spanned,
int start,
int limit) |
void |
recycle()
Removes all internal references to the spans to avoid memory leaks.
|
public void init(Spanned spanned, int start, int limit)
public boolean hasSpansIntersecting(int start, int end)
end
- must be strictly greater than startpublic void recycle()