Record Class TimeRangeInOut.TimeRangeHour
java.lang.Object
java.lang.Record
com.iohao.net.framework.core.flow.internal.TimeRangeInOut.TimeRangeHour
- Record Components:
hourTime- Hourcount- The number of action calls in one hourminuteList- Minute time ranges
- Enclosing class:
TimeRangeInOut
public static record TimeRangeInOut.TimeRangeHour(LocalTime hourTime, LongAdder count, List<TimeRangeInOut.TimeRangeMinute> minuteList)
extends Record
PluginInOut - TimeRangeInOut - Call statistics plugin for each time period - call statistics object for one hour
- Author:
- 渔民小镇
-
Constructor Summary
ConstructorsConstructorDescriptionTimeRangeHour(LocalTime hourTime, LongAdder count, List<TimeRangeInOut.TimeRangeMinute> minuteList) Creates an instance of aTimeRangeHourrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncount()Returns the value of thecountrecord component.static TimeRangeInOut.TimeRangeHourcreate(int hour, List<TimeRangeInOut.TimeRangeMinute> minuteList) final booleanIndicates whether some other object is "equal to" this one.intgetHour()final inthashCode()Returns a hash code value for this object.hourTime()Returns the value of thehourTimerecord component.Returns the value of theminuteListrecord component.@NonNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TimeRangeHour
public TimeRangeHour(LocalTime hourTime, LongAdder count, List<TimeRangeInOut.TimeRangeMinute> minuteList) Creates an instance of aTimeRangeHourrecord class.- Parameters:
hourTime- the value for thehourTimerecord componentcount- the value for thecountrecord componentminuteList- the value for theminuteListrecord component
-
-
Method Details
-
create
public static TimeRangeInOut.TimeRangeHour create(int hour, List<TimeRangeInOut.TimeRangeMinute> minuteList) -
getHour
public int getHour() -
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). -
hourTime
-
count
-
minuteList
Returns the value of theminuteListrecord component.- Returns:
- the value of the
minuteListrecord component
-