Fix documentation of nextSpanTransition off by one

Improve wording of javadoc for nextSpanTransition() to accurately
reflect the actual implementation.

Bug: 19274845
Change-Id: I8f8fb6a21a8cbcc26fefb63164a6943431d16089
This commit is contained in:
Raph Levien
2015-06-10 15:19:50 -07:00
parent 5e4c382d15
commit 7d627eb9d2

View File

@@ -187,12 +187,11 @@ extends CharSequence
public int getSpanFlags(Object tag);
/**
* Return the first offset greater than or equal to <code>start</code>
* where a markup object of class <code>type</code> begins or ends,
* or <code>limit</code> if there are no starts or ends greater than or
* equal to <code>start</code> but less than <code>limit</code>. Specify
* <code>null</code> or Object.class for the type if you want every
* transition regardless of type.
* Return the first offset greater than <code>start</code> where a markup
* object of class <code>type</code> begins or ends, or <code>limit</code>
* if there are no starts or ends greater than <code>start</code> but less
* than <code>limit</code>. Specify <code>null</code> or Object.class for
* the type if you want every transition regardless of type.
*/
public int nextSpanTransition(int start, int limit, Class type);
}