Package com.vaadin.copilot
Record Class CopilotTimingLog.Entry
java.lang.Object
java.lang.Record
com.vaadin.copilot.CopilotTimingLog.Entry
- Record Components:
epochMillis- wall-clock time the marker was recorded (used to order across sources)elapsedMillis- milliseconds since the JVM started; a within-source relative measuremessage- the marker text
- Enclosing class:
CopilotTimingLog
public static record CopilotTimingLog.Entry(long epochMillis, long elapsedMillis, String message)
extends Record
A single timing marker.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theelapsedMillisrecord component.longReturns the value of theepochMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
epochMillis- the value for theepochMillisrecord componentelapsedMillis- the value for theelapsedMillisrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
epochMillis
public long epochMillis()Returns the value of theepochMillisrecord component.- Returns:
- the value of the
epochMillisrecord component
-
elapsedMillis
public long elapsedMillis()Returns the value of theelapsedMillisrecord component.- Returns:
- the value of the
elapsedMillisrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-