Code example for Rfc822Token

0
  @Override 
  public final String convertToString(Cursor cursor) {
    String name = cursor.getString(NAME_INDEX);
    String address = cursor.getString(DATA_INDEX);
 
    return new Rfc822Token(name, address, null).toString();
  } 
 
  private final String makeDisplayString(Cursor cursor) {
    String name = cursor.getString(NAME_INDEX);
    String address = cursor.getString(DATA_INDEX);
 
    return TextUtils.isEmpty(name) ? address : name + " <" + address + '>';
  } 
 
  @Override 
  public final void bindView(View view, Context context, Cursor cursor) {
    ((TextView) view).setText(makeDisplayString(cursor));
  } 
 
  @Override