Class QualityValue
java.lang.Object
java.lang.Number
org.jboss.resteasy.core.request.QualityValue
- All Implemented Interfaces:
Serializable
,Comparable<QualityValue>
- Author:
- Pascal S. de Kloe
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QualityValue
static final QualityValue
static final QualityValue
static final QualityValue
-
Method Summary
Modifier and TypeMethodDescriptionint
double
boolean
float
int
hashCode()
int
intValue()
boolean
boolean
long
static QualityValue
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
NOT_ACCEPTABLE
-
LOWEST
-
HIGHEST
-
DEFAULT
-
-
Method Details
-
valueOf
- Parameters:
qvalue
- the quality value ornull
if undefined.- Returns:
QualityValue
-
isPrefered
public boolean isPrefered() -
isAcceptable
public boolean isAcceptable() -
compareTo
- Specified by:
compareTo
in interfaceComparable<QualityValue>
-
equals
-
hashCode
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
intValue
-
longValue
-