Class CommentedValue<U>

java.lang.Object
org.jdrupes.httpcodec.types.CommentedValue<U>
Type Parameters:
U - the type of the uncommented value

public class CommentedValue<U> extends Object
Represents a value with a optional comments such as value (comment).
  • Constructor Details

    • CommentedValue

      public CommentedValue(U value)
      Creates a new object with the given value and no comment.
      Parameters:
      value - the value
    • CommentedValue

      public CommentedValue(U value, String comment)
      Creates a new object with the given value and comment.
      Parameters:
      value - the value
      comment - the comment (without parenthesis)
    • CommentedValue

      public CommentedValue(U value, String[] comments)
      Creates a new object with the given value and comments.
      Parameters:
      value - the value
      comments - the comments (without parenthesis)
  • Method Details