Package com.ordwen.odailyquests.tools
Record Class RenewSchedule.Settings
java.lang.Object
java.lang.Record
com.ordwen.odailyquests.tools.RenewSchedule.Settings
- Record Components:
renewTime- the anchor time of day for renewalsinterval- the renewal interval durationzone- the time zone used for all calculationsmode- the timestamp mode applied to the schedule
- Enclosing class:
RenewSchedule
public static record RenewSchedule.Settings(LocalTime renewTime, Duration interval, ZoneId zone, int mode)
extends Record
Immutable container holding all renewal schedule parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.interval()Returns the value of theintervalrecord component.intmode()Returns the value of themoderecord component.Returns the value of therenewTimerecord component.final StringtoString()Returns a string representation of this record class.zone()Returns the value of thezonerecord component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
renewTime
Returns the value of therenewTimerecord component.- Returns:
- the value of the
renewTimerecord component
-
interval
Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
zone
Returns the value of thezonerecord component.- Returns:
- the value of the
zonerecord component
-
mode
public int mode()Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-