Package com.helger.http.header
Class AbstractQValueList<KEYTYPE>
java.lang.Object
com.helger.http.header.AbstractQValueList<KEYTYPE>
- Type Parameters:
KEYTYPE- The key type for the map.
- Direct Known Subclasses:
AcceptCharsetList,AcceptEncodingList,AcceptLanguageList,AcceptMimeTypeList
Represents a base class for all QValue'd stuff
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAllQValuesGreaterOrEqual(double dQuality) getAllQValuesGreaterThan(double dQuality) getAllQValuesLowerOrEqual(double dQuality) getAllQValuesLowerThan(double dQuality) abstract Stringstatic <T> StringgetAsHttpHeaderValue(com.helger.collection.commons.ICommonsOrderedMap<T, QValue> aMap, Function<T, String> aKeyTransformer) Static implementation of converting a map to String.protected StringgetAsHttpHeaderValue(Function<KEYTYPE, String> aKeyTransformer) Abstract implementation that requires a converter from the KEYTYPE generic parameter to String.inthashCode()toString()
-
Constructor Details
-
AbstractQValueList
public AbstractQValueList()
-
-
Method Details
-
qvalueMap
-
getAllQValues
-
getAllQValuesLowerThan
-
getAllQValuesLowerOrEqual
-
getAllQValuesGreaterThan
-
getAllQValuesGreaterOrEqual
-
getAsHttpHeaderValue
- Returns:
- The string representation of this list e.g. for usage in HTTP headers.
- Since:
- 9.3.5
-
getAsHttpHeaderValue
Abstract implementation that requires a converter from the KEYTYPE generic parameter to String.- Parameters:
aKeyTransformer- The transformer from KEYTYPE to String. May not benull.- Returns:
- The string representation of this list e.g. for usage in HTTP headers.
- Since:
- 9.3.5
-
getAsHttpHeaderValue
@Nonnull public static <T> String getAsHttpHeaderValue(@Nonnull com.helger.collection.commons.ICommonsOrderedMap<T, QValue> aMap, @Nonnull Function<T, String> aKeyTransformer) Static implementation of converting a map to String.- Type Parameters:
T- Key type- Parameters:
aMap- The map to be converted. May not benull.aKeyTransformer- The transformer from T to String. May not benull.- Returns:
- The string representation of this list e.g. for usage in HTTP headers.
- Since:
- 9.3.5
-
equals
-
hashCode
public int hashCode() -
toString
-