Record Class LocalTime.Data
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.properties.select.LocalTime.Data
- Enclosing class:
LocalTime
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.localeId()Returns the value of thelocaleIdrecord component.Optional<com.ibm.icu.util.TimeZone> timeZone()Returns the value of thetimeZonerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
format
The field for theformatrecord component. -
localeId
The field for thelocaleIdrecord component. -
timeZone
The field for thetimeZonerecord component.
-
-
Constructor Details
-
Data
Creates an instance of aDatarecord class.- Parameters:
format- the value for theformatrecord componentlocaleId- the value for thelocaleIdrecord componenttimeZone- the value for thetimeZonerecord component
-
-
Method Details
-
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). -
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
localeId
Returns the value of thelocaleIdrecord component.- Returns:
- the value of the
localeIdrecord component
-
timeZone
Returns the value of thetimeZonerecord component.- Returns:
- the value of the
timeZonerecord component
-