Record Class HarContent
java.lang.Object
java.lang.Record
de.sstoehr.harreader.model.HarContent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalrecord component.comment()Returns the value of thecommentrecord component.Returns the value of thecompressionrecord component.encoding()Returns the value of theencodingrecord 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.voidsetAdditionalField(String key, Object value) size()Returns the value of thesizerecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HarContent
public HarContent() -
HarContent
public HarContent(@Nullable Long size, @Nullable Long compression, @Nullable String mimeType, @Nullable String text, @Nullable String encoding, @Nullable String comment, @Nullable Map<String, Object> additional) Creates an instance of aHarContentrecord class.- Parameters:
size- the value for thesizerecord componentcompression- the value for thecompressionrecord componentmimeType- the value for themimeTyperecord componenttext- the value for thetextrecord componentencoding- the value for theencodingrecord 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). -
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
compression
Returns the value of thecompressionrecord component.- Returns:
- the value of the
compressionrecord component
-
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
encoding
Returns the value of theencodingrecord component.- Returns:
- the value of the
encodingrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-