Record Class TimeRangeInOut.TimeRangeDay
java.lang.Object
java.lang.Record
com.iohao.net.framework.core.flow.internal.TimeRangeInOut.TimeRangeDay
- Record Components:
localDate- Datecount- Total number of action calls for one daytimeRangeHours- Time periods
- Enclosing class:
TimeRangeInOut
public static record TimeRangeInOut.TimeRangeDay(LocalDate localDate, LongAdder count, TimeRangeInOut.TimeRangeHour[] timeRangeHours)
extends Record
PluginInOut - TimeRangeInOut - Call statistics plugin for each time period - call statistics object for one day
- Author:
- 渔民小镇
-
Constructor Summary
ConstructorsConstructorDescriptionTimeRangeDay(LocalDate localDate, LongAdder count, TimeRangeInOut.TimeRangeHour[] timeRangeHours) Creates an instance of aTimeRangeDayrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncount()Returns the value of thecountrecord component.static TimeRangeInOut.TimeRangeDaycreate(LocalDate localDate, List<TimeRangeInOut.TimeRangeHour> timeRangeHours) final booleanIndicates whether some other object is "equal to" this one.getTimeRangeHour(LocalTime localTime) final inthashCode()Returns a hash code value for this object.voidReturns the value of thelocalDaterecord component.stream()Returns the value of thetimeRangeHoursrecord component.@NonNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TimeRangeDay
public TimeRangeDay(LocalDate localDate, LongAdder count, TimeRangeInOut.TimeRangeHour[] timeRangeHours) Creates an instance of aTimeRangeDayrecord class.- Parameters:
localDate- the value for thelocalDaterecord componentcount- the value for thecountrecord componenttimeRangeHours- the value for thetimeRangeHoursrecord component
-
-
Method Details
-
create
public static TimeRangeInOut.TimeRangeDay create(LocalDate localDate, List<TimeRangeInOut.TimeRangeHour> timeRangeHours) -
stream
-
getTimeRangeHour
-
increment
-
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). -
localDate
-
count
-
timeRangeHours
Returns the value of thetimeRangeHoursrecord component.- Returns:
- the value of the
timeRangeHoursrecord component
-