@Override
    public int size() {
        return mediaTypes.length;
    }
Returns the {@link MediaTypeSet} which is composed of the specified {@link MediaType}s.
core/src/main/java/com/linecorp/armeria/common/MediaTypeSet.java