Package codes.grow.packages.skywalking
Record Class TimeInfo
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.TimeInfo
- Record Components:
timezone- OAP offset, for example+0000currentTimestamp- OAP wall clock in epoch milliseconds
The OAP clock (GraphQL
getTimeInfo).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe OAP wall clock as an instant.longReturns the value of thecurrentTimestamprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.timezone()Returns the value of thetimezonerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TimeInfo
Creates an instance of aTimeInforecord class.- Parameters:
timezone- the value for thetimezonerecord componentcurrentTimestamp- the value for thecurrentTimestamprecord component
-
-
Method Details
-
currentTime
The OAP wall clock as an instant.- Returns:
- the instant
-
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 '=='. -
timezone
Returns the value of thetimezonerecord component.- Returns:
- the value of the
timezonerecord component
-
currentTimestamp
public long currentTimestamp()Returns the value of thecurrentTimestamprecord component.- Returns:
- the value of the
currentTimestamprecord component
-