Record Class HarCache
java.lang.Object
java.lang.Record
de.sstoehr.harreader.model.HarCache
public record HarCache(@Nullable HarCache.HarCacheInfo beforeRequest, @Nullable HarCache.HarCacheInfo afterRequest, @Nullable String comment, @Nonnull Map<String,Object> additional)
extends Record
Information about a request coming from browser cache.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordInformation about a request coming from browser cache. -
Constructor Summary
ConstructorsConstructorDescriptionHarCache()HarCache(HarCache.HarCacheInfo beforeRequest, HarCache.HarCacheInfo afterRequest, String comment, Map<String, Object> additional) Creates an instance of aHarCacherecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalrecord component.Returns the value of theafterRequestrecord component.Returns the value of thebeforeRequestrecord 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.voidsetAdditionalField(String key, Object value) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HarCache
public HarCache() -
HarCache
public HarCache(@Nullable HarCache.HarCacheInfo beforeRequest, @Nullable HarCache.HarCacheInfo afterRequest, @Nullable String comment, @Nullable Map<String, Object> additional) Creates an instance of aHarCacherecord class.- Parameters:
beforeRequest- the value for thebeforeRequestrecord componentafterRequest- the value for theafterRequestrecord 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). -
beforeRequest
Returns the value of thebeforeRequestrecord component.- Returns:
- the value of the
beforeRequestrecord component
-
afterRequest
Returns the value of theafterRequestrecord component.- Returns:
- the value of the
afterRequestrecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-