| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private QuotedQualityCSV. | |
| private final List | |
| private final ToIntFunction | |
| private boolean | |
| private static final Logger | |
| public static ToIntFunction | MOST_SPECIFIC_MIME_ORDERING
Lambda to apply a most specific MIME encoding secondary ordering. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | QuotedQualityCSV(String[]
Array indicating the preferred order of known values preferredOrder)Sorts values with equal quality according to given order. |
| public | QuotedQualityCSV(List<String>
Array indicating the preferred order of known values preferredOrder)Sorts values with equal quality according to given order. |
| public | QuotedQualityCSV(ToIntFunction<String>
Function to apply an ordering other than specified by quality, highest values are sorted first. secondaryOrdering)Orders values with equal quality with the given function. |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public Iterator | iterator()
Overrides org. Implements java. Returns an iterator over elements of type |
| protected void | parsedParam(StringBuffer
Containing the trimmed value and all parameters, which may be mutated buffer, int The length of the value valueLength, int The index of the start of the parameter just parsed paramName, int The index of the start of the parameter value just parsed, or -1 paramValue)Overrides org. Called when a parameter has been parsed |
| protected void | parsedValue(StringBuffer
Containing the trimmed value, which may be mutated buffer)Overrides org. Called when a value has been parsed (prior to any parameters) |
| protected void | parsedValueAndParams(StringBuffer
Containing the trimmed value and parameters buffer)Overrides org. Called when a value and it's parameters has been parsed |
| protected void |
| _lastQuality | back to summary |
|---|---|
| private QuotedQualityCSV. | |
| _qualities | back to summary |
|---|---|
| private final List<QuotedQualityCSV. | |
| _secondaryOrdering | back to summary |
|---|---|
| private final ToIntFunction<String> _secondaryOrdering | |
| _sorted | back to summary |
|---|---|
| private boolean _sorted | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| MOST_SPECIFIC_MIME_ORDERING | back to summary |
|---|---|
| public static ToIntFunction<String> MOST_SPECIFIC_MIME_ORDERING Lambda to apply a most specific MIME encoding secondary ordering.
| |
| QuotedQualityCSV | back to summary |
|---|---|
| public QuotedQualityCSV() Sorts values with equal quality according to the length of the value String. | |
| QuotedQualityCSV | back to summary |
|---|---|
| public QuotedQualityCSV(String[] preferredOrder) Sorts values with equal quality according to given order.
| |
| QuotedQualityCSV | back to summary |
|---|---|
| public QuotedQualityCSV(List<String> preferredOrder) Sorts values with equal quality according to given order. | |
| QuotedQualityCSV | back to summary |
|---|---|
| public QuotedQualityCSV(ToIntFunction<String> secondaryOrdering) Orders values with equal quality with the given function.
| |
| getValues | back to summary |
|---|---|
| public List Overrides org.
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides org. Implements java. Doc from java. Returns an iterator over elements of type | |
| parsedParam | back to summary |
|---|---|
| protected void parsedParam(StringBuffer buffer, int valueLength, int paramName, int paramValue) Overrides org. Doc from org. Called when a parameter has been parsed
| |
| parsedValue | back to summary |
|---|---|
| protected void parsedValue(StringBuffer buffer) Overrides org. Doc from org. Called when a value has been parsed (prior to any parameters)
| |
| parsedValueAndParams | back to summary |
|---|---|
| protected void parsedValueAndParams(StringBuffer buffer) Overrides org. Doc from org. Called when a value and it's parameters has been parsed
| |
| sort | back to summary |
|---|---|
| protected void sort() | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final double | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(QuotedQualityCSV.
the object to be compared. oImplements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| private String | |
| public int | |
| public String |
| _index | back to summary |
|---|---|
| private final int _index | |
| _quality | back to summary |
|---|---|
| private final double _quality | |
| _value | back to summary |
|---|---|
| private final String _value | |
| QualityValue | back to summary |
|---|---|
| private QualityValue(double quality, String value, int index) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(QuotedQualityCSV. 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 obj) 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. | |
| getValue | back to summary |
|---|---|
| private 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |