Record Class HarLog
java.lang.Object
java.lang.Record
de.sstoehr.harreader.model.HarLog
public record HarLog(@Nonnull String version, @Nonnull HarCreatorBrowser creator, @Nullable HarCreatorBrowser browser, @Nonnull List<HarPage> pages, @Nonnull List<HarEntry> entries, @Nullable String comment, @Nonnull Map<String,Object> additional)
extends Record
Root object of exported data.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalrecord component.browser()Returns the value of thebrowserrecord component.comment()Returns the value of thecommentrecord component.creator()Returns the value of thecreatorrecord component.entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pages()Returns the value of thepagesrecord component.voidsetAdditionalField(String key, Object value) final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Field Details
-
DEFAULT_VERSION
- See Also:
-
-
Constructor Details
-
HarLog
public HarLog() -
HarLog
public HarLog(@Nullable String version, @Nullable HarCreatorBrowser creator, @Nullable HarCreatorBrowser browser, @Nullable List<HarPage> pages, @Nullable List<HarEntry> entries, @Nullable String comment, @Nullable Map<String, Object> additional) Creates an instance of aHarLogrecord class.- Parameters:
version- the value for theversionrecord componentcreator- the value for thecreatorrecord componentbrowser- the value for thebrowserrecord componentpages- the value for thepagesrecord componententries- the value for theentriesrecord 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). -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
creator
Returns the value of thecreatorrecord component.- Returns:
- the value of the
creatorrecord component
-
browser
Returns the value of thebrowserrecord component.- Returns:
- the value of the
browserrecord component
-
pages
-
entries
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-