Record Class IdA1TimestampUTC
java.lang.Object
java.lang.Record
com.io7m.idstore.protocol.admin.cb.IdA1TimestampUTC
- Record Components:
fieldYear- The year.fieldMonth- The month in the range [1, 12].fieldDay- The day of the month in the range [1, 31].fieldHour- The hour in the range [0, 23].fieldMinute- The minute in the range [0, 59].fieldSecond- The second in the range [0, 59].fieldMillisecond- The millisecond in the range [0, 999].
- All Implemented Interfaces:
com.io7m.cedarbridge.runtime.api.CBSerializableType
public record IdA1TimestampUTC(com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldYear, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldMonth, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldDay, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldHour, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldMinute, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldSecond, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldMillisecond)
extends Record
implements com.io7m.cedarbridge.runtime.api.CBSerializableType
A UTC timestamp value.
-
Constructor Summary
ConstructorsConstructorDescriptionIdA1TimestampUTC(com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldYear, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldMonth, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldDay, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldHour, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldMinute, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldSecond, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldMillisecond) Creates an instance of aIdA1TimestampUTCrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic IdA1TimestampUTCdeserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) Deserialize a value of type IdA1TimestampUTC.final booleanIndicates whether some other object is "equal to" this one.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8fieldDay()Returns the value of thefieldDayrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8Returns the value of thefieldHourrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32Returns the value of thefieldMillisecondrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8Returns the value of thefieldMinuterecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8Returns the value of thefieldMonthrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8Returns the value of thefieldSecondrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32Returns the value of thefieldYearrecord component.final inthashCode()Returns a hash code value for this object.static voidserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, IdA1TimestampUTC $x) Serialize a value of type IdA1TimestampUTC.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IdA1TimestampUTC
public IdA1TimestampUTC(com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldYear, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldMonth, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldDay, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldHour, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldMinute, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldSecond, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldMillisecond) Creates an instance of aIdA1TimestampUTCrecord class.- Parameters:
fieldYear- the value for thefieldYearrecord componentfieldMonth- the value for thefieldMonthrecord componentfieldDay- the value for thefieldDayrecord componentfieldHour- the value for thefieldHourrecord componentfieldMinute- the value for thefieldMinuterecord componentfieldSecond- the value for thefieldSecondrecord componentfieldMillisecond- the value for thefieldMillisecondrecord component
-
-
Method Details
-
serialize
public static void serialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, IdA1TimestampUTC $x) throws IOException Serialize a value of type IdA1TimestampUTC.- Parameters:
$context- The serialization context.$x- The value to be serialized.- Throws:
IOException
-
deserialize
public static IdA1TimestampUTC deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) throws IOException Deserialize a value of type IdA1TimestampUTC.- Parameters:
$context- The serialization context.- Returns:
- A value of type IdA1TimestampUTC.
- Throws:
IOException
-
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 withObjects::equals(Object,Object). -
fieldYear
-
fieldMonth
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldMonth()Returns the value of thefieldMonthrecord component.- Returns:
- the value of the
fieldMonthrecord component
-
fieldDay
-
fieldHour
-
fieldMinute
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldMinute()Returns the value of thefieldMinuterecord component.- Returns:
- the value of the
fieldMinuterecord component
-
fieldSecond
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned8 fieldSecond()Returns the value of thefieldSecondrecord component.- Returns:
- the value of the
fieldSecondrecord component
-
fieldMillisecond
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned32 fieldMillisecond()Returns the value of thefieldMillisecondrecord component.- Returns:
- the value of the
fieldMillisecondrecord component
-