Record Class HarPostData
java.lang.Object
java.lang.Record
de.sstoehr.harreader.model.HarPostData
-
Constructor Summary
ConstructorsConstructorDescriptionHarPostData(String mimeType, List<HarPostDataParam> params, String text, String comment, Map<String, Object> additional) Creates an instance of aHarPostDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalrecord component.comment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mimeType()Returns the value of themimeTyperecord component.params()Returns the value of theparamsrecord component.voidsetAdditionalField(String key, Object value) text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HarPostData
public HarPostData() -
HarPostData
public HarPostData(@Nullable String mimeType, @Nullable List<HarPostDataParam> params, @Nullable String text, @Nullable String comment, @Nullable Map<String, Object> additional) Creates an instance of aHarPostDatarecord class.- Parameters:
mimeType- the value for themimeTyperecord componentparams- the value for theparamsrecord componenttext- the value for thetextrecord componentcomment- the value for thecommentrecord componentadditional- the value for theadditionalrecord component
-
-
Method Details
-
additional
-
setAdditionalField
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-