code: int getNextTransition(int start, int limit) {
          for (int i = 0; i < numberOfSpans; i++) {
              final int spanStart = spanStarts[i];
              final int spanEnd = spanEnds[i];
              if (spanStart > start && spanStart < limit) limit = spanStart;
              if (spanEnd > start && spanEnd < limit) limit = spanEnd;
          }
          return limit;
      }
docs: Similar to {@link Spanned#nextSpanTransition(int, int, Class)}