Package 

Class SpanDrawableMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher , org.hamcrest.SelfDescribing

    
    public final class SpanDrawableMatcher
    extends TypeSafeMatcher<View>
                        

    Matches given drawable with specified span

    • Method Summary

      Modifier and Type Method Description
      Unit describeTo(Description desc)
      • Methods inherited from class org.hamcrest.TypeSafeMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, toString
      • Methods inherited from class io.github.kakaocup.kakao.common.matchers.SpanDrawableMatcher

        describeMismatch, describeMismatchSafely, matches
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpanDrawableMatcher

        SpanDrawableMatcher(Integer resId, Drawable drawable, Integer tintColorId, Function1<Drawable, Bitmap> toBitmap, Integer queryStart, Integer queryEnd, Integer spanIndex)
        Parameters:
        resId - Drawable resource to be matched (default is -1)
        drawable - Drawable instance to be matched (default is null)
        toBitmap - Lambda with custom Drawable -> Bitmap converter (default is null)
        queryStart - Index of the character that is the beginning of the range of text to which span is attached (default is 0)
        queryEnd - Index of the character that is the end of the range of text to which span is attached (default is null)
        spanIndex - Index of span in string's spans array (default is 0)