| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static QValueParser. | handleNewEncoding(final List<QValueParser.
|
| public static List |
| QValueParser | back to summary |
|---|---|
| private QValueParser() | |
| handleNewEncoding | back to summary |
|---|---|
| private static QValueParser. | |
| parse | back to summary |
|---|---|
| public static List Parses a set of headers that take q values to determine the most preferred one. It returns the result in the form of a sorted list of list, with every element in the list having the same q value. This means the highest priority items are at the front of the list. The container should use its own internal preferred ordering to determinately pick the correct item to use
| |
| Modifier and Type | Field and Description |
|---|---|
| private String | qvalue
we keep the qvalue as a string to avoid parsing the double. |
| private String | value
The string value of the result |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(final QValueParser.
the object to be compared. otherImplements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public String | |
| public int | |
| public boolean |
| qvalue | back to summary |
|---|---|
| private String qvalue we keep the qvalue as a string to avoid parsing the double. This should give both performance and also possible security improvements | |
| value | back to summary |
|---|---|
| private String value The string value of the result | |
| QValueResult | back to summary |
|---|---|
| public QValueResult() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(final QValueParser. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getQvalue | back to summary |
|---|---|
| public String getQvalue() | |
| getValue | back to summary |
|---|---|
| public String getValue() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isQValueZero | back to summary |
|---|---|
| public boolean isQValueZero() | |