Package org.jboss.resteasy.core.request
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
FieldsModifier and TypeFieldDescriptionstatic final QualityValuestatic final QualityValuestatic final QualityValuestatic final QualityValue -
Method Summary
Modifier and TypeMethodDescriptionintdoublebooleanfloatinthashCode()intintValue()booleanbooleanlongstatic QualityValueMethods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
NOT_ACCEPTABLE
-
LOWEST
-
HIGHEST
-
DEFAULT
-
-
Method Details
-
valueOf
- Parameters:
qvalue- the quality value ornullif undefined.- Returns:
QualityValue
-
isPrefered
public boolean isPrefered() -
isAcceptable
public boolean isAcceptable() -
compareTo
- Specified by:
compareToin interfaceComparable<QualityValue>
-
equals
-
hashCode
public int hashCode() -
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
intValue
public int intValue() -
longValue
public long longValue()
-