@Override
    public int hashCode() {
        // racy single-check idiom
        int h = hashCode;
        if (h == 0) {
            h = Objects.hashCode(type, subtype, parametersAsMap());
            hashCode = h;
        }
        return h;
    }
Parses a media type from its string representation.

@throws IllegalArgumentException if the input is not parsable
core/src/main/java/com/linecorp/armeria/common/MediaType.java