Package types.temporal.generated
Record Class GeneratedTemporal.TimeSplit
java.lang.Object
java.lang.Record
types.temporal.generated.GeneratedTemporal.TimeSplit
- Enclosing interface:
GeneratedTemporal
public static record GeneratedTemporal.TimeSplit(OffsetDateTime time, Temporal fragment)
extends Record
One timeSplit fragment with its bin start.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TemporalThe field for thefragmentrecord component.private final OffsetDateTimeThe field for thetimerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTimeSplit(OffsetDateTime time, Temporal fragment) Creates an instance of aTimeSplitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fragment()Returns the value of thefragmentrecord component.final inthashCode()Returns a hash code value for this object.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
time
The field for thetimerecord component. -
fragment
The field for thefragmentrecord component.
-
-
Constructor Details
-
TimeSplit
Creates an instance of aTimeSplitrecord class.- Parameters:
time- the value for thetimerecord componentfragment- the value for thefragmentrecord component
-
-
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 withObjects::equals(Object,Object). -
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
fragment
Returns the value of thefragmentrecord component.- Returns:
- the value of the
fragmentrecord component
-