public <T> TypeAdapter<T> getNextAdapter(TypeAdapterFactory skipPast, TypeToken<T> type) {
    boolean skipPastFound = false;

    for (TypeAdapterFactory factory : factories) {
      if (!skipPastFound) {
        if (factory == skipPast) {
          skipPastFound = true;
        }
        continue;
      }

      TypeAdapter<T> candidate = factory.create(this, type);
      if (candidate != null) {
        return candidate;
      }
    }
    throw new IllegalArgumentException("GSON cannot serialize " + type);
  }
public <T> TypeAdapter<T> getNextAdapter(TypeAdapterFactory skipPast, TypeToken<T> type) {
    boolean skipPastFound = false;

    for (TypeAdapterFactory factory : factories) {
      if (!skipPastFound) {
        if (factory == skipPast) {
          skipPastFound = true;
        }
        continue;
      }

      TypeAdapter<T> candidate = factory.create(this, type);
      if (candidate != null) {
        return candidate;
      }
    }
    throw new IllegalArgumentException("GSON cannot serialize " + type);
  }
public < T > TypeAdapter < T > getNextAdapter ( TypeAdapterFactory skipPast , TypeToken < T > type ) { boolean skipPastFound = false ; for ( TypeAdapterFactory factory : factories ) { if ( ! skipPastFound ) { if ( factory == skipPast ) { skipPastFound = true ; } continue ; } TypeAdapter < T > candidate = factory . create ( this , type ) ; if ( candidate != null ) { return candidate ; } } throw new IllegalArgumentException ( "GSON cannot serialize " + type ) ; }
TODO: needs documentation
@since 2.2
TODO : needs documentation