src/org/kocakosm/pitaya/net/MediaType.java
public boolean is(MediaType range)
	{
		return (range.type.equals(WILDCARD) || range.type.equals(type))
			&& (range.subtype.equals(WILDCARD) || range.subtype.equals(subtype))
			&& parameters.entrySet().containsAll(range.parameters.entrySet());
	}
public boolean is(MediaType range)
	{
		return (range.type.equals(WILDCARD) || range.type.equals(type))
			&& (range.subtype.equals(WILDCARD) || range.subtype.equals(subtype))
			&& parameters.entrySet().containsAll(range.parameters.entrySet());
	}
Returns whether this media type is within the specified media range.
Namely, it returns {@code true} if the type of {@code range} is the
wildcard or is equal to the type of this instance, and, if the
subtype of {@code range} is the wildcard or is equal to the subtype
of this instance, and, if all the parameters present in {@code range}
are also present in this instance.

@param range the range to check this media type against.

@return whether this media type is within the specified range.

@throws NullPointerException if {@code range} is {@code null}.