コード例 #1
0
 /**
  * Constructor with a media type.
  *
  * @param mediaType The media type of the representation.
  */
 public RepresentationInfo(MediaType mediaType) {
   setMediaType(mediaType);
 }
コード例 #2
0
 /**
  * Constructor with a variant.
  *
  * @param variant The variant to describe.
  */
 public RepresentationInfo(Variant variant) {
   setMediaType(variant.getMediaType());
 }