Record Class ActiveHours.ActiveTime
java.lang.Object
java.lang.Record
com.zenith.module.impl.ActiveHours.ActiveTime
- Enclosing class:
ActiveHours
-
Constructor Summary
ConstructorsConstructorDescriptionActiveTime(int hour, int minute) Creates an instance of aActiveTimerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ActiveHours.ActiveTimefromString(String arg) final inthashCode()Returns a hash code value for this object.inthour()Returns the value of thehourrecord component.intminute()Returns the value of theminuterecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ActiveTime
public ActiveTime(int hour, int minute) Creates an instance of aActiveTimerecord class.- Parameters:
hour- the value for thehourrecord componentminute- the value for theminuterecord component
-
-
Method Details
-
fromString
-
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 with thecomparemethod from their corresponding wrapper classes. -
hour
public int hour()Returns the value of thehourrecord component.- Returns:
- the value of the
hourrecord component
-
minute
public int minute()Returns the value of theminuterecord component.- Returns:
- the value of the
minuterecord component
-