Class QuotedQualityCSV.QualityValue
java.lang.Object
org.eclipse.jetty.http.QuotedQualityCSV.QualityValue
- All Implemented Interfaces:
Comparable<QuotedQualityCSV.QualityValue>
- Enclosing class:
QuotedQualityCSV
public class QuotedQualityCSV.QualityValue
extends Object
implements Comparable<QuotedQualityCSV.QualityValue>
A quality value, that is a value with an associated weight parameter, as defined in RFC 9110.
A quality value appears in HTTP headers such as Accept
, Accept-Encoding
,
etc. for example in this form:
Accept-Encoding: gzip; q=1, br; q=0.5, zstd; q=0.1
-
Method Summary
-
Method Details
-
getValue
- Returns:
- the value
-
getWeight
public double getWeight()- Returns:
- the weight
-
isAcceptable
public boolean isAcceptable()- Returns:
- whether the weight is greater than zero
-
hashCode
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QuotedQualityCSV.QualityValue>
-
toString
-