Record Class Timetz
java.lang.Object
java.lang.Record
io.codemine.java.postgresql.codecs.Timetz
- Record Components:
time- microseconds from midnight (0 to 86400000000)zone- timezone offset in seconds with inverted sign per PostgreSQL convention: UTC+1 is stored as-3600
PostgreSQL
timetz type. Time of day with time zone.-
Constructor Summary
Constructors -
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.longtime()Returns the value of thetimerecord component.toString()Returns a string representation of this record class.intzone()Returns the value of thezonerecord component.
-
Constructor Details
-
Method Details
-
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. All components in this record class are compared with '=='. -
time
public long time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
zone
public int zone()Returns the value of thezonerecord component.- Returns:
- the value of the
zonerecord component
-