Package dev.grafeo.gwp.types
Record Class GqlZonedTime
java.lang.Object
java.lang.Record
dev.grafeo.gwp.types.GqlZonedTime
- Record Components:
time- the local time componentoffsetMinutes- the UTC offset in minutes
A GQL time value with UTC offset.
-
Constructor Summary
ConstructorsConstructorDescriptionGqlZonedTime(GqlLocalTime time, int offsetMinutes) Creates an instance of aGqlZonedTimerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theoffsetMinutesrecord component.time()Returns the value of thetimerecord component.Convert to a JavaOffsetTime.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GqlZonedTime
Creates an instance of aGqlZonedTimerecord class.- Parameters:
time- the value for thetimerecord componentoffsetMinutes- the value for theoffsetMinutesrecord component
-
-
Method Details
-
toOffsetTime
Convert to a JavaOffsetTime.- Returns:
- the equivalent OffsetTime
-
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 '=='. -
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
offsetMinutes
public int offsetMinutes()Returns the value of theoffsetMinutesrecord component.- Returns:
- the value of the
offsetMinutesrecord component
-