/** * Constructor with a media type. * * @param mediaType The media type of the representation. */ public RepresentationInfo(MediaType mediaType) { setMediaType(mediaType); }
/** * Constructor with a variant. * * @param variant The variant to describe. */ public RepresentationInfo(Variant variant) { setMediaType(variant.getMediaType()); }