public static List<MediaType> valueOf(final String... types) throws Err.BadMediaType {
    requireNonNull(types, "Types are required.");
    List<MediaType> result = new ArrayList<>();
    for (String type : types) {
      result.add(valueOf(type));
    }
    return result;
  }
public static List<MediaType> valueOf(final String... types) throws Err.BadMediaType {
    requireNonNull(types, "Types are required.");
    List<MediaType> result = new ArrayList<>();
    for (String type : types) {
      result.add(valueOf(type));
    }
    return result;
  }
public static List < MediaType > valueOf ( final String ... types ) throws Err . BadMediaType { requireNonNull ( types , "Types are required." ) ; List < MediaType > result = new ArrayList <> ( ) ; for ( String type : types ) { result . add ( valueOf ( type ) ) ; } return result ; }
Convert one or more media types expressed as String into a {@link MediaType}.

@param types Media types to parse.
@return An list of immutable {@link MediaType}.
@throws Err.BadMediaType For bad media types.
Convert one or more media types expressed as String into a { @link MediaType } .