Class MediaRanges.PredefinedMediaRange

    • Constructor Detail

      • PredefinedMediaRange

        public PredefinedMediaRange​(java.lang.String value)
    • Method Detail

      • mainType

        public java.lang.String mainType()
        Description copied from class: MediaRange
        Returns the main-type this media-range matches.
        Specified by:
        mainType in class MediaRange
      • params

        public scala.collection.immutable.Map<java.lang.String,​scala.runtime.Nothing$> params()
      • qValue

        public float qValue()
        Description copied from class: MediaRange
        Returns the qValue of this media-range.
        Specified by:
        qValue in class MediaRange
      • withParams

        public MediaRange withParams​(scala.collection.immutable.Map<java.lang.String,​java.lang.String> params)
        Description copied from class: MediaRange
        Returns a copy of this instance with the params replaced by the given ones. If the given map contains a "q" value the qValue member is (also) updated.
        Specified by:
        withParams in class MediaRange
        Parameters:
        params - (undocumented)
        Returns:
        (undocumented)