Package dev.grafeo.gwp.types
Record Class GqlZonedDateTime
java.lang.Object
java.lang.Record
dev.grafeo.gwp.types.GqlZonedDateTime
- Record Components:
date- the date componenttime- the time componentoffsetMinutes- the UTC offset in minutes
A GQL datetime value with UTC offset.
-
Constructor Summary
ConstructorsConstructorDescriptionGqlZonedDateTime(GqlDate date, GqlLocalTime time, int offsetMinutes) Creates an instance of aGqlZonedDateTimerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondate()Returns the value of thedaterecord component.final 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 JavaOffsetDateTime.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GqlZonedDateTime
Creates an instance of aGqlZonedDateTimerecord class.- Parameters:
date- the value for thedaterecord componenttime- the value for thetimerecord componentoffsetMinutes- the value for theoffsetMinutesrecord component
-
-
Method Details
-
toOffsetDateTime
Convert to a JavaOffsetDateTime.- Returns:
- the equivalent OffsetDateTime
-
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 '=='. -
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
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
-