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 aTiming
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
Cancels the timing on the associated Vert.x instance.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.long
id()
Returns the value of theid
record component.toString()
Returns a string representation of this record class.io.vertx.core.Vertx
vertx()
Returns the value of thevertx
record component.
-
Constructor Details
-
Method Details
-
cancel
public boolean cancel()Cancels the timing on the associated Vert.x instance.- Returns:
true
if 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 thevertx
record component.- Returns:
- the value of the
vertx
record component
-
id
public long id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-