CharSequence is an interface not a class and examples of classes that 
implement the CharSequence interface are:

   - String
   - SpannableStringBuilder

See:
http://developer.android.com/reference/java/lang/CharSequence.html
and look at the section *Known Indirect Subclasses*.

On Wednesday, January 23, 2013 2:45:42 PM UTC, SIVAKUMAR.J wrote:
>
> Dear All,
>
> Im developing android application.My sdk details are *minimum sdk version 
> is 7 and target and buid sdk version is 10
> *
>
> In my app in one screen im using *"EditText"* and im using *filter* for 
> that editText
> the following are my coding snippet
>
> editText.setFilters
>         (
>                 new InputFilter[] 
>                 {
>                         new InputFilter() 
>                         {
>                             public CharSequence filter(CharSequence *src*, 
> int start,int end, Spanned dst, int dstart, int dend) 
>                             {
>
>                                 String name=src.getClass().getName();
>                                 System.out.println("\n\tSrc class name 
> ="+name);
>
>                                 String tempStr=((String)src).toUpperCase();
>
>
>
>                                 return tempStr;
>                             }                           
>                         }
>                 }
>         );
>
> in the above code sometimes *src* be the *String,sometimes it be 
> CharSequence,sometimes it be " android.text.SpannableStringBuilder"*
> my doubt is at what scenarios charsequence is passed ,String is passed 
> ,android.text.SpannableStringBuilder is passed as *src*
>
>
> -- 
> *Thanks & Regards,
> SIVAKUMAR.J <http://stackoverflow.com/users/385138/sivakumar-j>
> * 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to