Record Class Timing
java.lang.Object
java.lang.Record
de.wuespace.telestion.api.verticle.trait.Timing
- Record Components:
vertx- the associated Vert.x instanceid- the id of the timing
Stores information to a specific timing from Vert.x like the timing id or associated Vert.x instance.
-
Constructor Summary
ConstructorsConstructorDescriptionTiming(io.vertx.core.Vertx vertx, long id)Creates an instance of aTimingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()Cancels the timing on the associated Vert.x instance.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.toString()Returns a string representation of this record class.io.vertx.core.Vertxvertx()Returns the value of thevertxrecord component.
-
Constructor Details
-
Method Details
-
cancel
public boolean cancel()Cancels the timing on the associated Vert.x instance.- Returns:
trueif the timing was successfully cancelled
-
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 '=='. -
vertx
public io.vertx.core.Vertx vertx()Returns the value of thevertxrecord component.- Returns:
- the value of the
vertxrecord component
-
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-