Record Class TimeStatsEvent
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.util.TimeStatsEvent
-
Constructor Summary
ConstructorsConstructorDescriptionTimeStatsEvent(String clazz, String method, long enter, long exit) Creates an instance of aTimeStatsEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclazz()Returns the value of theclazzrecord component.longenter()Returns the value of theenterrecord component.final booleanIndicates whether some other object is "equal to" this one.longexit()Returns the value of theexitrecord component.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TimeStatsEvent
Creates an instance of aTimeStatsEventrecord class.- Parameters:
clazz- the value for theclazzrecord componentmethod- the value for themethodrecord componententer- the value for theenterrecord componentexit- the value for theexitrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
clazz
Returns the value of theclazzrecord component.- Returns:
- the value of the
clazzrecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
enter
public long enter()Returns the value of theenterrecord component.- Returns:
- the value of the
enterrecord component
-
exit
public long exit()Returns the value of theexitrecord component.- Returns:
- the value of the
exitrecord component
-