Module it.auties.whatsapp4j
Class BusinessDateTimeComponent
java.lang.Object
it.auties.whatsapp.model.business.BusinessDateTimeComponent
- All Implemented Interfaces:
it.auties.protobuf.base.ProtobufMessage
,BusinessDateTimeValue
A model class that represents a time component
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
The constants of this enumerated type describe the supported calendar typesstatic enum
The constants of this enumerated type describe the days of the week -
Field Summary
FieldsModifier and TypeFieldDescriptionThe type of calendarprivate int
The day of the monthThe day of the weekprivate int
The hourprivate int
The minuteprivate int
The monthprivate int
The year -
Constructor Summary
ConstructorsConstructorDescriptionBusinessDateTimeComponent
(BusinessDateTimeComponent.DayOfWeek dayOfWeek, int year, int month, int dayOfMonth, int hour, int minute, BusinessDateTimeComponent.CalendarType calendar) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
calendar()
The type of calendarThe type of calendardateType()
Returns the type of dateint
The day of the monthdayOfMonth
(int dayOfMonth) The day of the monthThe day of the weekdayOfWeek
(BusinessDateTimeComponent.DayOfWeek dayOfWeek) The day of the weekboolean
int
hashCode()
int
hour()
The hourhour
(int hour) The hourint
minute()
The minuteminute
(int minute) The minuteint
month()
The monthmonth
(int month) The monthtoString()
int
year()
The yearyear
(int year) The year
-
Field Details
-
dayOfWeek
The day of the week -
year
private int yearThe year -
month
private int monthThe month -
dayOfMonth
private int dayOfMonthThe day of the month -
hour
private int hourThe hour -
minute
private int minuteThe minute -
calendar
The type of calendar
-
-
Constructor Details
-
BusinessDateTimeComponent
public BusinessDateTimeComponent(BusinessDateTimeComponent.DayOfWeek dayOfWeek, int year, int month, int dayOfMonth, int hour, int minute, BusinessDateTimeComponent.CalendarType calendar)
-
-
Method Details
-
dateType
Description copied from interface:BusinessDateTimeValue
Returns the type of date- Specified by:
dateType
in interfaceBusinessDateTimeValue
- Returns:
- a non-null type
-
builder
-
dayOfWeek
The day of the week -
year
public int year()The year -
month
public int month()The month -
dayOfMonth
public int dayOfMonth()The day of the month -
hour
public int hour()The hour -
minute
public int minute()The minute -
calendar
The type of calendar -
dayOfWeek
The day of the week- Returns:
this
.
-
year
The year- Returns:
this
.
-
month
The month- Returns:
this
.
-
dayOfMonth
The day of the month- Returns:
this
.
-
hour
The hour- Returns:
this
.
-
minute
The minute- Returns:
this
.
-
calendar
The type of calendar- Returns:
this
.
-
equals
-
hashCode
public int hashCode() -
toString
-