Record Class Time
java.lang.Object
java.lang.Record
dev.engine.core.module.Time
-
Constructor Summary
ConstructorsConstructorDescriptionTime(long frameNumber, double timeDelta) Creates an instance of aTimerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theframeNumberrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thetimeDeltarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Time
public Time(long frameNumber, double timeDelta) Creates an instance of aTimerecord class.- Parameters:
frameNumber- the value for theframeNumberrecord componenttimeDelta- the value for thetimeDeltarecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
frameNumber
public long frameNumber()Returns the value of theframeNumberrecord component.- Returns:
- the value of the
frameNumberrecord component
-
timeDelta
public double timeDelta()Returns the value of thetimeDeltarecord component.- Returns:
- the value of the
timeDeltarecord component
-