java.lang.Object
java.lang.Record
it.auties.whatsapp.model.business.BusinessHours
- Record Components:
timeZone- The time zone of the business.entries- A list of business hours entries that contains information about the hours of operation for each day of the week.
A business hours representation that contains the business' time zone and a list of business hour
entries.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBusinessHours(String timeZone, List<BusinessHoursEntry> entries) Creates an instance of aBusinessHoursrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.timeZone()Returns the value of thetimeZonerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
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 withObjects::equals(Object,Object). -
timeZone
Returns the value of thetimeZonerecord component.- Returns:
- the value of the
timeZonerecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-