public interface ConvertibleHeaders<UnconvertedType,ConvertedType> extends Headers<UnconvertedType>
Headers
interface to provide methods which convert the
native UnconvertedType
to the not-native ConvertedType
Modifier and Type | Interface and Description |
---|---|
static interface |
ConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType>
Interface to do conversions to and from the two generic type parameters
|
Headers.EntryVisitor<T>, Headers.NameVisitor<T>, Headers.ValueConverter<T>
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, 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, size
ConvertedType getAndConvert(UnconvertedType name)
Headers.get(Object)
and does a conversion on the results if not null
name
- The name of entry to getname
and then convertedConvertedType getAndConvert(UnconvertedType name, ConvertedType defaultValue)
Headers.get(Object, Object)
and does a conversion on the results if not null
name
- The name of entry to getname
and then convertedConvertedType getAndRemoveAndConvert(UnconvertedType name)
Headers.getAndRemove(Object)
and does a conversion on the results if not null
name
- The name of entry to getname
and then convertedConvertedType getAndRemoveAndConvert(UnconvertedType name, ConvertedType defaultValue)
Headers.getAndRemove(Object, Object)
and does
a conversion on the results if not null
name
- The name of entry to getname
and then convertedList<ConvertedType> getAllAndConvert(UnconvertedType name)
Headers.getAll(Object)
and does a conversion on the results if not null
name
- The name of entry to getname
and then convertedList<ConvertedType> getAllAndRemoveAndConvert(UnconvertedType name)
Headers.getAllAndRemove(Object)
and does a conversion on the results if not null
name
- The name of entry to getname
and then convertedList<Map.Entry<ConvertedType,ConvertedType>> entriesConverted()
Headers.entries()
and lazily does a conversion on the results as they are accessedname
and then lazily convertedIterator<Map.Entry<ConvertedType,ConvertedType>> iteratorConverted()
Headers.iterator()
and lazily does a conversion on the results as they are accessedname
Set<ConvertedType> namesAndConvert(Comparator<ConvertedType> comparator)
Headers.names()
and does a conversion on the resultsname
and then convertedCopyright © 2008–2015 The Netty Project. All rights reserved.