Record Class HarPage
java.lang.Object
java.lang.Record
de.sstoehr.harreader.model.HarPage
public record HarPage(@Nullable ZonedDateTime startedDateTime, @Nullable String id, @Nullable String title, @Nonnull HarPageTiming pageTimings, @Nullable String comment, @Nonnull Map<String,Object> additional)
extends Record
Information about an exported page.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHarPage()HarPage(ZonedDateTime startedDateTime, String id, String title, HarPageTiming pageTimings, String comment, Map<String, Object> additional) Creates an instance of aHarPagerecord 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.id()Returns the value of theidrecord component.Returns the value of thepageTimingsrecord component.voidsetAdditionalField(String key, Object value) Returns the value of thestartedDateTimerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HarPage
public HarPage() -
HarPage
public HarPage(@Nullable ZonedDateTime startedDateTime, @Nullable String id, @Nullable String title, @Nullable HarPageTiming pageTimings, @Nullable String comment, @Nullable Map<String, Object> additional) Creates an instance of aHarPagerecord class.- Parameters:
startedDateTime- the value for thestartedDateTimerecord componentid- the value for theidrecord componenttitle- the value for thetitlerecord componentpageTimings- the value for thepageTimingsrecord 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). -
startedDateTime
Returns the value of thestartedDateTimerecord component.- Returns:
- the value of the
startedDateTimerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
pageTimings
Returns the value of thepageTimingsrecord component.- Returns:
- the value of the
pageTimingsrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-