Code example for TypeToken

Methods: equals

0
  } 
 
  @SuppressWarnings("unchecked") 
  @Override 
  public <T> T parse(Context context, TypedData requestBody, TypeToken<T> type) throws Exception {
    if (type.equals(FORM_TYPE)) {
      return (T) FormDecoder.parseForm(context, requestBody);
    } else { 
      return null; 
    } 
  } 
 
  public static FormParser multiPart() { 
    return new FormParser("multipart/form-data"); 
  } 
 
  public static FormParser urlEncoded() { 
    return new FormParser("application/x-www-form-urlencoded"); 
  } 
 
Connect your IDE to all the code out there  Get Codota for Java