Record Class TimeRangeInOut.TimeRangeMinute
java.lang.Object
java.lang.Record
com.iohao.net.framework.core.flow.internal.TimeRangeInOut.TimeRangeMinute
- Record Components:
start- Start time (minute), inclusiveend- End time (minute), inclusivecount- Number of executions triggered within this time range
- Enclosing class:
TimeRangeInOut
-
Constructor Summary
ConstructorsConstructorDescriptionTimeRangeMinute(int start, int end, LongAdder count) Creates an instance of aTimeRangeMinuterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncount()Returns the value of thecountrecord component.create(int start, int end) Create minute range recordintend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intstart()Returns the value of thestartrecord component.@NonNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TimeRangeMinute
-
-
Method Details
-
create
Create minute range record- Parameters:
start- Start time (minute), inclusiveend- End time (minute), inclusive- Returns:
- Minute range record
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
start
-
end
-
count
-