Package org.jdrupes.httpcodec.types
Class CommentedValue<U>
java.lang.Object
org.jdrupes.httpcodec.types.CommentedValue<U>
- Type Parameters:
U- the type of the uncommented value
Represents a value with a optional comments
such as
value (comment).-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCommentedValue(U value) Creates a new object with the given value and no comment.CommentedValue(U value, String comment) Creates a new object with the given value and comment.CommentedValue(U value, String[] comments) Creates a new object with the given value and comments. -
Method Summary
-
Constructor Details
-
CommentedValue
Creates a new object with the given value and no comment.- Parameters:
value- the value
-
CommentedValue
Creates a new object with the given value and comment.- Parameters:
value- the valuecomment- the comment (without parenthesis)
-
CommentedValue
Creates a new object with the given value and comments.- Parameters:
value- the valuecomments- the comments (without parenthesis)
-
-
Method Details