/guava/guava/src/com/google/common/net/MediaType.java
} return WILDCARD.equals( type) || WILDCARD.equals( subtype) ;
return WILDCARD.equals ( type ) || WILDCARD.equals ( subtype ) ; }
checkNotNull(charset); MediaType withCharset = withParameter(CHARSET_ATTRIBUTE, charset.name()); withCharset.parsedCharset = Optional.of(charset); return withCharset; } public boolean hasWildcard() { <extra_id_0> public boolean is(MediaType mediaTypeRange) { return (mediaTypeRange.type.equals(WILDCARD) || mediaTypeRange.type.equals(this.type)) && (mediaTypeRange.subtype.equals(WILDCARD) || mediaTypeRange.subtype.equals(this.subtype)) && this.parameters.entries().containsAll(mediaTypeRange.parameters.entries()); } public static MediaType create(String type, String subtype) {