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

Method createConstant

output/java_guava/1.4.16/MediaType.java:101–103  ·  view source on GitHub ↗
(String type, String subtype)

Source from the content-addressed store, hash-verified

99 private static final String WILDCARD = "*";
100 private static final Map<MediaType, MediaType> KNOWN_TYPES = Maps.newHashMap();
101 private static MediaType createConstant(String type, String subtype) {
102 return addKnownType(new MediaType(type, subtype, ImmutableListMultimap.<String, String>of()));
103 }
104
105 private static MediaType createConstantUtf8(String type, String subtype) {
106 return addKnownType(new MediaType(type, subtype, UTF_8_CONSTANT_PARAMETERS));

Callers 1

MediaTypeClass · 0.95

Calls 2

addKnownTypeMethod · 0.95
ofMethod · 0.95

Tested by

no test coverage detected