Package es.urjc.etsii.grafo.util
Record Class TimeStatsEvent
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.util.TimeStatsEvent
-
Constructor Summary
ConstructorsConstructorDescriptionTimeStatsEvent
(boolean enter, long when, String clazz, String method) Creates an instance of aTimeStatsEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionclazz()
Returns the value of theclazz
record component.boolean
enter()
Returns the value of theenter
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.method()
Returns the value of themethod
record component.final String
toString()
Returns a string representation of this record class.long
when()
Returns the value of thewhen
record component.
-
Constructor Details
-
TimeStatsEvent
Creates an instance of aTimeStatsEvent
record class.- Parameters:
enter
- the value for theenter
record componentwhen
- the value for thewhen
record componentclazz
- the value for theclazz
record componentmethod
- the value for themethod
record 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 '=='. -
enter
public boolean enter()Returns the value of theenter
record component.- Returns:
- the value of the
enter
record component
-
when
public long when()Returns the value of thewhen
record component.- Returns:
- the value of the
when
record component
-
clazz
Returns the value of theclazz
record component.- Returns:
- the value of the
clazz
record component
-
method
Returns the value of themethod
record component.- Returns:
- the value of the
method
record component
-