public class DefaultConvertibleHeaders<UnconvertedType,ConvertedType> extends DefaultHeaders<UnconvertedType> implements ConvertibleHeaders<UnconvertedType,ConvertedType>
DefaultHeaders.HashCodeGenerator<T>, DefaultHeaders.IdentityNameConverter<T>, DefaultHeaders.KeyValueHeaderIterator, DefaultHeaders.NameConverter<T>ConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType>Headers.EntryVisitor<T>, Headers.NameVisitor<T>, Headers.ValueConverter<T>| Constructor and Description |
|---|
DefaultConvertibleHeaders(Comparator<? super UnconvertedType> keyComparator,
Comparator<? super UnconvertedType> valueComparator,
DefaultHeaders.HashCodeGenerator<UnconvertedType> hashCodeGenerator,
Headers.ValueConverter<UnconvertedType> valueConverter,
ConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType> typeConverter) |
DefaultConvertibleHeaders(Comparator<? super UnconvertedType> keyComparator,
Comparator<? super UnconvertedType> valueComparator,
DefaultHeaders.HashCodeGenerator<UnconvertedType> hashCodeGenerator,
Headers.ValueConverter<UnconvertedType> valueConverter,
ConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType> typeConverter,
DefaultHeaders.NameConverter<UnconvertedType> nameConverter) |
| Modifier and Type | Method and Description |
|---|---|
List<Map.Entry<ConvertedType,ConvertedType>> |
entriesConverted()
Invokes
Headers.entries() and lazily does a conversion on the results as they are accessed |
List<ConvertedType> |
getAllAndConvert(UnconvertedType name)
Invokes
Headers.getAll(Object) and does a conversion on the results if not null |
List<ConvertedType> |
getAllAndRemoveAndConvert(UnconvertedType name)
Invokes
Headers.getAllAndRemove(Object) and does a conversion on the results if not null |
ConvertedType |
getAndConvert(UnconvertedType name)
Invokes
Headers.get(Object) and does a conversion on the results if not null |
ConvertedType |
getAndConvert(UnconvertedType name,
ConvertedType defaultValue)
Invokes
Headers.get(Object, Object) and does a conversion on the results if not null |
ConvertedType |
getAndRemoveAndConvert(UnconvertedType name)
Invokes
Headers.getAndRemove(Object) and does a conversion on the results if not null |
ConvertedType |
getAndRemoveAndConvert(UnconvertedType name,
ConvertedType defaultValue)
Invokes
Headers.getAndRemove(Object, Object) and does
a conversion on the results if not null |
Iterator<Map.Entry<ConvertedType,ConvertedType>> |
iteratorConverted()
Invokes
Headers.iterator() and lazily does a conversion on the results as they are accessed |
Set<ConvertedType> |
namesAndConvert(Comparator<ConvertedType> comparator)
Invokes
Headers.names() and does a conversion on the results |
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, contains, contains, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsObject, containsObject, containsShort, containsTimeMillis, entries, equals, forEachEntry, forEachName, get, get, getAll, getAllAndRemove, getAndRemove, getAndRemove, getBoolean, getBoolean, getBooleanAndRemove, getBooleanAndRemove, getByte, getByte, getByteAndRemove, getByteAndRemove, getChar, getChar, getCharAndRemove, getCharAndRemove, getDouble, getDouble, getDoubleAndRemove, getDoubleAndRemove, getFloat, getFloat, getFloatAndRemove, getFloatAndRemove, getInt, getInt, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, hashCode, isEmpty, iterator, names, namesList, remove, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, size, toString, valueConverterclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, contains, contains, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsObject, containsObject, containsShort, containsTimeMillis, entries, forEachEntry, forEachName, get, get, getAll, getAllAndRemove, getAndRemove, getAndRemove, getBoolean, getBoolean, getBooleanAndRemove, getBooleanAndRemove, getByte, getByte, getByteAndRemove, getByteAndRemove, getChar, getChar, getCharAndRemove, getCharAndRemove, getDouble, getDouble, getDoubleAndRemove, getDoubleAndRemove, getFloat, getFloat, getFloatAndRemove, getFloatAndRemove, getInt, getInt, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, isEmpty, iterator, names, namesList, remove, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, sizepublic DefaultConvertibleHeaders(Comparator<? super UnconvertedType> keyComparator, Comparator<? super UnconvertedType> valueComparator, DefaultHeaders.HashCodeGenerator<UnconvertedType> hashCodeGenerator, Headers.ValueConverter<UnconvertedType> valueConverter, ConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType> typeConverter)
public DefaultConvertibleHeaders(Comparator<? super UnconvertedType> keyComparator, Comparator<? super UnconvertedType> valueComparator, DefaultHeaders.HashCodeGenerator<UnconvertedType> hashCodeGenerator, Headers.ValueConverter<UnconvertedType> valueConverter, ConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType> typeConverter, DefaultHeaders.NameConverter<UnconvertedType> nameConverter)
public ConvertedType getAndConvert(UnconvertedType name)
ConvertibleHeadersHeaders.get(Object) and does a conversion on the results if not nullgetAndConvert in interface ConvertibleHeaders<UnconvertedType,ConvertedType>name - The name of entry to getname and then convertedpublic ConvertedType getAndConvert(UnconvertedType name, ConvertedType defaultValue)
ConvertibleHeadersHeaders.get(Object, Object) and does a conversion on the results if not nullgetAndConvert in interface ConvertibleHeaders<UnconvertedType,ConvertedType>name - The name of entry to getname and then convertedpublic ConvertedType getAndRemoveAndConvert(UnconvertedType name)
ConvertibleHeadersHeaders.getAndRemove(Object) and does a conversion on the results if not nullgetAndRemoveAndConvert in interface ConvertibleHeaders<UnconvertedType,ConvertedType>name - The name of entry to getname and then convertedpublic ConvertedType getAndRemoveAndConvert(UnconvertedType name, ConvertedType defaultValue)
ConvertibleHeadersHeaders.getAndRemove(Object, Object) and does
a conversion on the results if not nullgetAndRemoveAndConvert in interface ConvertibleHeaders<UnconvertedType,ConvertedType>name - The name of entry to getname and then convertedpublic List<ConvertedType> getAllAndConvert(UnconvertedType name)
ConvertibleHeadersHeaders.getAll(Object) and does a conversion on the results if not nullgetAllAndConvert in interface ConvertibleHeaders<UnconvertedType,ConvertedType>name - The name of entry to getname and then convertedpublic List<ConvertedType> getAllAndRemoveAndConvert(UnconvertedType name)
ConvertibleHeadersHeaders.getAllAndRemove(Object) and does a conversion on the results if not nullgetAllAndRemoveAndConvert in interface ConvertibleHeaders<UnconvertedType,ConvertedType>name - The name of entry to getname and then convertedpublic List<Map.Entry<ConvertedType,ConvertedType>> entriesConverted()
ConvertibleHeadersHeaders.entries() and lazily does a conversion on the results as they are accessedentriesConverted in interface ConvertibleHeaders<UnconvertedType,ConvertedType>name and then lazily convertedpublic Iterator<Map.Entry<ConvertedType,ConvertedType>> iteratorConverted()
ConvertibleHeadersHeaders.iterator() and lazily does a conversion on the results as they are accessediteratorConverted in interface ConvertibleHeaders<UnconvertedType,ConvertedType>namepublic Set<ConvertedType> namesAndConvert(Comparator<ConvertedType> comparator)
ConvertibleHeadersHeaders.names() and does a conversion on the resultsnamesAndConvert in interface ConvertibleHeaders<UnconvertedType,ConvertedType>name and then convertedCopyright © 2008–2015 The Netty Project. All rights reserved.