Record Class Config.Executor.DurationUnit
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Config.Executor.DurationUnit
- Enclosing class:
Config.Executor
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDurationUnit(Long duration, TimeUnit timeUnit) Creates an instance of aDurationUnitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.timeUnit()Returns the value of thetimeUnitrecord component.final StringtoString()Returns a string representation of this record class.withDuration(Long duration) withTimeUnit(TimeUnit timeUnit)
-
Constructor Details
-
DurationUnit
-
-
Method Details
-
builder
-
toBuilder
-
withDuration
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTimeUnit
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
timeUnit
Returns the value of thetimeUnitrecord component.- Returns:
- the value of the
timeUnitrecord component
-