public class EmptyConvertibleHeaders<UnconvertedType,ConvertedType> extends EmptyHeaders<UnconvertedType> implements ConvertibleHeaders<UnconvertedType,ConvertedType>
ConvertibleHeaders.TypeConverter<UnconvertedType,ConvertedType>
Headers.EntryVisitor<T>, Headers.NameVisitor<T>, Headers.ValueConverter<T>
Constructor and Description |
---|
EmptyConvertibleHeaders() |
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
public ConvertedType getAndConvert(UnconvertedType name)
ConvertibleHeaders
Headers.get(Object)
and does a conversion on the results if not null
getAndConvert
in interface ConvertibleHeaders<UnconvertedType,ConvertedType>
name
- The name of entry to getname
and then convertedpublic ConvertedType getAndConvert(UnconvertedType name, ConvertedType defaultValue)
ConvertibleHeaders
Headers.get(Object, Object)
and does a conversion on the results if not null
getAndConvert
in interface ConvertibleHeaders<UnconvertedType,ConvertedType>
name
- The name of entry to getname
and then convertedpublic ConvertedType getAndRemoveAndConvert(UnconvertedType name)
ConvertibleHeaders
Headers.getAndRemove(Object)
and does a conversion on the results if not null
getAndRemoveAndConvert
in interface ConvertibleHeaders<UnconvertedType,ConvertedType>
name
- The name of entry to getname
and then convertedpublic ConvertedType getAndRemoveAndConvert(UnconvertedType name, ConvertedType defaultValue)
ConvertibleHeaders
Headers.getAndRemove(Object, Object)
and does
a conversion on the results if not null
getAndRemoveAndConvert
in interface ConvertibleHeaders<UnconvertedType,ConvertedType>
name
- The name of entry to getname
and then convertedpublic List<ConvertedType> getAllAndConvert(UnconvertedType name)
ConvertibleHeaders
Headers.getAll(Object)
and does a conversion on the results if not null
getAllAndConvert
in interface ConvertibleHeaders<UnconvertedType,ConvertedType>
name
- The name of entry to getname
and then convertedpublic List<ConvertedType> getAllAndRemoveAndConvert(UnconvertedType name)
ConvertibleHeaders
Headers.getAllAndRemove(Object)
and does a conversion on the results if not null
getAllAndRemoveAndConvert
in interface ConvertibleHeaders<UnconvertedType,ConvertedType>
name
- The name of entry to getname
and then convertedpublic List<Map.Entry<ConvertedType,ConvertedType>> entriesConverted()
ConvertibleHeaders
Headers.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()
ConvertibleHeaders
Headers.iterator()
and lazily does a conversion on the results as they are accessediteratorConverted
in interface ConvertibleHeaders<UnconvertedType,ConvertedType>
name
public Set<ConvertedType> namesAndConvert(Comparator<ConvertedType> comparator)
ConvertibleHeaders
Headers.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.