Package Torello.Browser
Class PerformanceTimeline.TimelineEvent
- java.lang.Object
-
- Torello.Java.JSON.BaseType
-
- Torello.Browser.PerformanceTimeline.TimelineEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- PerformanceTimeline
public static class PerformanceTimeline.TimelineEvent extends BaseType implements java.io.Serializable
[No Description Provided by Google]
- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/PerformanceTimeline.java
- Open New Browser-Tab: Torello/Browser/PerformanceTimeline.java
File Size: 5,851 Bytes Line Count: 139 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field protected static long
serialVersionUID
For Object Serialization.Type Properties Modifier and Type Field Number
duration
Event duration, if applicable.String
frameId
Identifies the frame that this event is related to.PerformanceTimeline.LayoutShift
layoutShiftDetails
[No Description Provided by Google]
OPTIONALPerformanceTimeline.LargestContentfulPaint
lcpDetails
[No Description Provided by Google]
OPTIONALString
name
Name may be empty depending on the type.Number
time
Time in seconds since Epoch, monotonically increasing within document lifetime.String
type
The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype This determines which of the optional "details" fiedls is present.
-
Constructor Summary
Constructors Constructor Description TimelineEvent(String frameId, String type, String name, Number time, Number duration, PerformanceTimeline.LargestContentfulPaint lcpDetails, PerformanceTimeline.LayoutShift layoutShiftDetails)
ConstructorTimelineEvent(JsonObject jo)
JSON Object Constructor
-
Method Summary
Generate Array that Indicates which Parameter are Optional Modifier and Type Method boolean[]
optionals()
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.Methods: class java.lang.Object Modifier and Type Method boolean
equals(Object other)
Checks whether'this'
equals an input Java-Object
int
hashCode()
Generates a Hash-Code for'this'
instance
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
For Object Serialization. java.io.Serializable- See Also:
- Constant Field Values
-
frameId
public final java.lang.String frameId
Identifies the frame that this event is related to. Empty for non-frame targets.
-
type
public final java.lang.String type
The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype This determines which of the optional "details" fiedls is present.
-
name
public final java.lang.String name
Name may be empty depending on the type.
-
time
public final java.lang.Number time
Time in seconds since Epoch, monotonically increasing within document lifetime.
-
duration
public final java.lang.Number duration
Event duration, if applicable.
OPTIONAL
-
lcpDetails
public final PerformanceTimeline.LargestContentfulPaint lcpDetails
[No Description Provided by Google]
OPTIONAL
-
layoutShiftDetails
public final PerformanceTimeline.LayoutShift layoutShiftDetails
[No Description Provided by Google]
OPTIONAL
-
-
Constructor Detail
-
TimelineEvent
public TimelineEvent(java.lang.String frameId, java.lang.String type, java.lang.String name, java.lang.Number time, java.lang.Number duration, PerformanceTimeline.LargestContentfulPaint lcpDetails, PerformanceTimeline.LayoutShift layoutShiftDetails)
Constructor- Parameters:
frameId
- Identifies the frame that this event is related to. Empty for non-frame targets.type
- The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype This determines which of the optional "details" fiedls is present.name
- Name may be empty depending on the type.time
- Time in seconds since Epoch, monotonically increasing within document lifetime.duration
- Event duration, if applicable.
OPTIONALlcpDetails
- -
OPTIONALlayoutShiftDetails
- -
OPTIONAL
-
TimelineEvent
public TimelineEvent(JsonObject jo)
JSON Object Constructor- Parameters:
jo
- A Json-Object having data about an instance of'TimelineEvent'
.
-
-
Method Detail
-
optionals
public boolean[] optionals()
Description copied from class:BaseType
Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding aJsonObject
to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array positionTRUE
.
NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
-
equals
public boolean equals(java.lang.Object other)
Checks whether'this'
equals an input Java-Object
- Overrides:
equals
in classjava.lang.Object
- Code:
- Exact Method Body:
if (other == null) return false; if (other.getClass() != this.getClass()) return false; TimelineEvent o = (TimelineEvent) other; return Objects.equals(this.frameId, o.frameId) && Objects.equals(this.type, o.type) && Objects.equals(this.name, o.name) && Objects.equals(this.time, o.time) && Objects.equals(this.duration, o.duration) && Objects.equals(this.lcpDetails, o.lcpDetails) && Objects.equals(this.layoutShiftDetails, o.layoutShiftDetails);
-
hashCode
public int hashCode()
Generates a Hash-Code for'this'
instance- Overrides:
hashCode
in classjava.lang.Object
- Code:
- Exact Method Body:
return Objects.hashCode(this.frameId) + Objects.hashCode(this.type) + Objects.hashCode(this.name) + Objects.hashCode(this.time) + Objects.hashCode(this.duration) + this.lcpDetails.hashCode() + this.layoutShiftDetails.hashCode();
-
-