test_class.file: nuxeo-java-client/src/test/java/org/nuxeo/client/TestMediaType.java
test_class.identifier: TestMediaType
test_case.body: @Test
      public void testEqualsTypeSubTypeWithoutSuffix() {
          MediaType mediaType1 = MediaType.parse("application/json; charset=UTF-8");
          MediaType mediaType2 = MediaType.parse("application/json+nxentity; charset=UTF-8");
          assertTrue(mediaType1.equalsTypeSubTypeWithoutSuffix(mediaType2));
          assertTrue(mediaType2.equalsTypeSubTypeWithoutSuffix(mediaType1));
      }
test_case.class_method_signature: TestMediaType.testEqualsTypeSubTypeWithoutSuffix()
test_case.full_signature: @Test public void testEqualsTypeSubTypeWithoutSuffix()
test_case.identifier: testEqualsTypeSubTypeWithoutSuffix
test_case.invocations: parse parse assertTrue equalsTypeSubTypeWithoutSuffix assertTrue equalsTypeSubTypeWithoutSuffix
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEqualsTypeSubTypeWithoutSuffix()
focal_class.declarator: TOKEN = "([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)"
focal_class.modifier: private static final
focal_class.original_string: private static final String TOKEN = "([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)";
focal_class.type: String
focal_class.var_name: TOKEN
focal_class.declarator: QUOTED = "\"([^\"]*)\""
focal_class.modifier: private static final
focal_class.original_string: private static final String QUOTED = "\"([^\"]*)\"";
focal_class.type: String
focal_class.var_name: QUOTED
focal_class.declarator: TYPE_SUBTYPE = Pattern.compile(TOKEN + "/" + TOKEN)
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern TYPE_SUBTYPE = Pattern.compile(TOKEN + "/" + TOKEN);
focal_class.type: Pattern
focal_class.var_name: TYPE_SUBTYPE
focal_class.declarator: PARAMETER = Pattern.compile(
              ";\\s*(?:" + TOKEN + "=(?:" + TOKEN + "|" + QUOTED + "))?")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern PARAMETER = Pattern.compile(
              ";\\s*(?:" + TOKEN + "=(?:" + TOKEN + "|" + QUOTED + "))?");
focal_class.type: Pattern
focal_class.var_name: PARAMETER
focal_class.declarator: DEFAULT_STRING = "application/octet-stream"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String DEFAULT_STRING = "application/octet-stream";
focal_class.type: String
focal_class.var_name: DEFAULT_STRING
focal_class.declarator: DEFAULT = parse(DEFAULT_STRING)
focal_class.modifier: protected static final
focal_class.original_string: protected static final MediaType DEFAULT = parse(DEFAULT_STRING);
focal_class.type: MediaType
focal_class.var_name: DEFAULT
focal_class.declarator: originalString
focal_class.modifier: private final
focal_class.original_string: private final String originalString;
focal_class.type: String
focal_class.var_name: originalString
focal_class.declarator: type
focal_class.modifier: private final
focal_class.original_string: private final String type;
focal_class.type: String
focal_class.var_name: type
focal_class.declarator: subtype
focal_class.modifier: private final
focal_class.original_string: private final String subtype;
focal_class.type: String
focal_class.var_name: subtype
focal_class.declarator: charset
focal_class.modifier: private final
focal_class.original_string: private final String charset;
focal_class.type: String
focal_class.var_name: charset
focal_class.declarator: nuxeoEntity
focal_class.modifier: private final
focal_class.original_string: private final String nuxeoEntity;
focal_class.type: String
focal_class.var_name: nuxeoEntity
focal_class.file: nuxeo-java-client/src/main/java/org/nuxeo/client/MediaType.java
focal_class.identifier: MediaType
focal_class.class_method_signature: MediaType.MediaType(String originalString, String type, String subtype, String charset, String nuxeoEntity)
focal_class.full_signature: private  MediaType(String originalString, String type, String subtype, String charset, String nuxeoEntity)
focal_class.identifier: MediaType
focal_class.modifiers: private
focal_class.parameters: (String originalString, String type, String subtype, String charset, String nuxeoEntity)
focal_class.signature:  MediaType(String originalString, String type, String subtype, String charset, String nuxeoEntity)
focal_class.class_method_signature: MediaType.type()
focal_class.full_signature: public String type()
focal_class.identifier: type
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String type()
focal_class.class_method_signature: MediaType.subtype()
focal_class.full_signature: public String subtype()
focal_class.identifier: subtype
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String subtype()
focal_class.class_method_signature: MediaType.charset()
focal_class.full_signature: public Charset charset()
focal_class.identifier: charset
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Charset
focal_class.signature: Charset charset()
focal_class.class_method_signature: MediaType.nuxeoEntity()
focal_class.full_signature: public String nuxeoEntity()
focal_class.identifier: nuxeoEntity
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String nuxeoEntity()
focal_class.class_method_signature: MediaType.charset(Charset defaultValue)
focal_class.full_signature: public Charset charset(Charset defaultValue)
focal_class.identifier: charset
focal_class.modifiers: public
focal_class.parameters: (Charset defaultValue)
focal_class.return: Charset
focal_class.signature: Charset charset(Charset defaultValue)
focal_class.class_method_signature: MediaType.toOkHttpMediaType()
focal_class.full_signature: public okhttp3.MediaType toOkHttpMediaType()
focal_class.identifier: toOkHttpMediaType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: okhttp3.MediaType
focal_class.signature: okhttp3.MediaType toOkHttpMediaType()
focal_class.class_method_signature: MediaType.equalsType(MediaType mediaType)
focal_class.full_signature: public boolean equalsType(MediaType mediaType)
focal_class.identifier: equalsType
focal_class.modifiers: public
focal_class.parameters: (MediaType mediaType)
focal_class.return: boolean
focal_class.signature: boolean equalsType(MediaType mediaType)
focal_class.class_method_signature: MediaType.equalsTypeSubType(MediaType mediaType)
focal_class.full_signature: public boolean equalsTypeSubType(MediaType mediaType)
focal_class.identifier: equalsTypeSubType
focal_class.modifiers: public
focal_class.parameters: (MediaType mediaType)
focal_class.return: boolean
focal_class.signature: boolean equalsTypeSubType(MediaType mediaType)
focal_class.class_method_signature: MediaType.equalsTypeSubTypeWithoutSuffix(MediaType mediaType)
focal_class.full_signature: public boolean equalsTypeSubTypeWithoutSuffix(MediaType mediaType)
focal_class.identifier: equalsTypeSubTypeWithoutSuffix
focal_class.modifiers: public
focal_class.parameters: (MediaType mediaType)
focal_class.return: boolean
focal_class.signature: boolean equalsTypeSubTypeWithoutSuffix(MediaType mediaType)
focal_class.class_method_signature: MediaType.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: MediaType.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: MediaType.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: MediaType.fromOkHttpMediaType(okhttp3.MediaType mediaType)
focal_class.full_signature: public static MediaType fromOkHttpMediaType(okhttp3.MediaType mediaType)
focal_class.identifier: fromOkHttpMediaType
focal_class.modifiers: public static
focal_class.parameters: (okhttp3.MediaType mediaType)
focal_class.return: MediaType
focal_class.signature: MediaType fromOkHttpMediaType(okhttp3.MediaType mediaType)
focal_class.class_method_signature: MediaType.parse(String string)
focal_class.full_signature: public static MediaType parse(String string)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String string)
focal_class.return: MediaType
focal_class.signature: MediaType parse(String string)
focal_method.body: public boolean equalsTypeSubTypeWithoutSuffix(MediaType mediaType) {
          if (equalsType(mediaType)) {
              UnaryOperator<String> removeSuffix = s -> s.replaceAll("\\+.*", "");
              String thisSubtype = removeSuffix.apply(subtype);
              String givenSubtype = removeSuffix.apply(mediaType.subtype);
              return thisSubtype.equals(givenSubtype);
          }
          return false;
      }
focal_method.class_method_signature: MediaType.equalsTypeSubTypeWithoutSuffix(MediaType mediaType)
focal_method.full_signature: public boolean equalsTypeSubTypeWithoutSuffix(MediaType mediaType)
focal_method.identifier: equalsTypeSubTypeWithoutSuffix
focal_method.invocations: equalsType replaceAll apply apply equals
focal_method.modifiers: public
focal_method.parameters: (MediaType mediaType)
focal_method.return: boolean
focal_method.signature: boolean equalsTypeSubTypeWithoutSuffix(MediaType mediaType)