retrofit/src/main/java/retrofit2/Retrofit.java
public <T> Converter<T, String> stringConverter(Type type, Annotation[] annotations) {
    checkNotNull(type, "type == null");
    checkNotNull(annotations, "annotations == null");

    for (int i = 0, count = converterFactories.size(); i < count; i++) {
      Converter<?, String> converter =
          converterFactories.get(i).stringConverter(type, annotations, this);
      if (converter != null) {
        //noinspection unchecked
        return (Converter<T, String>) converter;
      }
    }

    // Nothing matched. Resort to default converter which just calls toString().
    //noinspection unchecked
    return (Converter<T, String>) BuiltInConverters.ToStringConverter.INSTANCE;
  }
public <T> Converter<T, String> stringConverter(Type type, Annotation[] annotations) {
    checkNotNull(type, "type == null");
    checkNotNull(annotations, "annotations == null");

    for (int i = 0, count = converterFactories.size(); i < count; i++) {
      Converter<?, String> converter =
          converterFactories.get(i).stringConverter(type, annotations, this);
      if (converter != null) {
        //noinspection unchecked
        return (Converter<T, String>) converter;
      }
    }

    // Nothing matched. Resort to default converter which just calls toString().
    //noinspection unchecked
    return (Converter<T, String>) BuiltInConverters.ToStringConverter.INSTANCE;
  }
public < T > Converter < T , String > stringConverter ( Type type , Annotation [ ] annotations ) { checkNotNull ( type , "type == null" ) ; checkNotNull ( annotations , "annotations == null" ) ; for ( int i = 0 , count = converterFactories . size ( ) ; i < count ; i ++ ) { Converter < ? , String > converter = converterFactories . get ( i ) . stringConverter ( type , annotations , this ) ; if ( converter != null ) { //noinspection unchecked return ( Converter < T , String > ) converter ; } } // Nothing matched. Resort to default converter which just calls toString(). //noinspection unchecked return ( Converter < T , String > ) BuiltInConverters . ToStringConverter . INSTANCE ; }
Returns a {@link Converter} for {@code type} to {@link String} from the available
{@linkplain #converterFactories() factories}.
Returns a {