Record Class BusinessOpeningHoursInterval
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.BusinessOpeningHoursInterval
- All Implemented Interfaces:
Serializable, ApiResult
-
Constructor Summary
ConstructorsConstructorDescriptionBusinessOpeningHoursInterval(@Range(from=0L,to=10080L) int openingMinute, @Range(from=0L,to=11520L) int closingMinute) Creates an instance of aBusinessOpeningHoursIntervalrecord class. -
Method Summary
Modifier and TypeMethodDescription@Range(from=0L,to=11520L) intReturns the value of theclosingMinuterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Range(from=0L,to=10080L) intReturns the value of theopeningMinuterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BusinessOpeningHoursInterval
public BusinessOpeningHoursInterval(@Range(from=0L,to=10080L) int openingMinute, @Range(from=0L,to=11520L) int closingMinute) Creates an instance of aBusinessOpeningHoursIntervalrecord class.- Parameters:
openingMinute- the value for theopeningMinuterecord componentclosingMinute- the value for theclosingMinuterecord 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 with thecomparemethod from their corresponding wrapper classes. -
openingMinute
public @Range(from=0L,to=10080L) int openingMinute()Returns the value of theopeningMinuterecord component.- Returns:
- the value of the
openingMinuterecord component
-
closingMinute
public @Range(from=0L,to=11520L) int closingMinute()Returns the value of theclosingMinuterecord component.- Returns:
- the value of the
closingMinuterecord component
-