Package org.jdrupes.httpcodec.types
Class CommentedValue.CommentedValueConverter<U>
java.lang.Object
org.jdrupes.httpcodec.types.CommentedValue.CommentedValueConverter<U>
- All Implemented Interfaces:
Converter<CommentedValue<U>>
- Enclosing class:
- CommentedValue<U>
public static class CommentedValue.CommentedValueConverter<U>
extends Object
implements Converter<CommentedValue<U>>
-
Constructor Summary
ConstructorsConstructorDescriptionCommentedValueConverter(Converter<U> valueConverter) Creates a new converter with the given value converter. -
Method Summary
Modifier and TypeMethodDescriptionasFieldValue(CommentedValue<U> value) Returns the representation of this value in a header field.fromFieldValue(String text) Parses the given text and returns the parsed value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdrupes.httpcodec.types.Converter
asHeaderField
-
Constructor Details
-
CommentedValueConverter
Creates a new converter with the given value converter.- Parameters:
valueConverter- the value converter
-
-
Method Details
-
asFieldValue
Description copied from interface:ConverterReturns the representation of this value in a header field.- Specified by:
asFieldValuein interfaceConverter<U>- Parameters:
value- the value to be converted- Returns:
- the representation
-
fromFieldValue
Description copied from interface:ConverterParses the given text and returns the parsed value.- Specified by:
fromFieldValuein interfaceConverter<U>- Parameters:
text- the value from the header field- Returns:
- the parsed value
-