MCPcopy Create free account
hub / github.com/antlr/codebuff / create

Method create

output/java_guava/1.4.18/MediaType.java:840–842  ·  view source on GitHub ↗

Creates a new media type with the given type and subtype. @throws IllegalArgumentException if type or subtype is invalid or if a wildcard is used for the type, but not the subtype.

(String type, String subtype)

Source from the content-addressed store, hash-verified

838
839
840 public static MediaType create(String type, String subtype) {
841 return create(type, subtype, ImmutableListMultimap.<String, String>of());
842 }
843
844 /**
845 * Creates a media type with the "application" type and the given subtype.

Callers 8

withoutParametersMethod · 0.95
withParametersMethod · 0.95
createApplicationTypeMethod · 0.95
createAudioTypeMethod · 0.95
createImageTypeMethod · 0.95
createTextTypeMethod · 0.95
createVideoTypeMethod · 0.95
parseMethod · 0.95

Calls 14

ofMethod · 0.95
normalizeTokenMethod · 0.95
builderMethod · 0.95
firstNonNullMethod · 0.95
equalsMethod · 0.65
entriesMethod · 0.65
getKeyMethod · 0.65
putMethod · 0.65
getValueMethod · 0.65
getMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected