org.jboss.resteasy.core.request
Class QualityValue
java.lang.Object
java.lang.Number
org.jboss.resteasy.core.request.QualityValue
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<QualityValue>
public final class QualityValue
- extends java.lang.Number
- implements java.lang.Comparable<QualityValue>
- Author:
- Pascal S. de Kloe
- See Also:
- "RFC2616 3.9 Quality Values",
Serialized Form
Methods inherited from class java.lang.Number |
byteValue, shortValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
NOT_ACCEPTABLE
public static final QualityValue NOT_ACCEPTABLE
LOWEST
public static final QualityValue LOWEST
HIGHEST
public static final QualityValue HIGHEST
DEFAULT
public static final QualityValue DEFAULT
valueOf
public static QualityValue valueOf(java.lang.String qvalue)
- Parameters:
qvalue
- the quality value or null
if undefined.
isPrefered
public boolean isPrefered()
isAcceptable
public boolean isAcceptable()
compareTo
public int compareTo(QualityValue o)
- Specified by:
compareTo
in interface java.lang.Comparable<QualityValue>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in class java.lang.Number
floatValue
public float floatValue()
- Specified by:
floatValue
in class java.lang.Number
intValue
public int intValue()
- Specified by:
intValue
in class java.lang.Number
longValue
public long longValue()
- Specified by:
longValue
in class java.lang.Number
Copyright © 2010. All Rights Reserved.