Record Class DoctorDetails
java.lang.Object
java.lang.Record
cz.cuni.kubinja.hospitalsystem.personnel.util.DoctorDetails
- Record Components:
specialization- Specialization of the doctor.department- Name of department in which is doctor working.
-
Constructor Summary
ConstructorsConstructorDescriptionDoctorDetails(String specialization, String department) Creates an instance of aDoctorDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedepartmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thespecializationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DoctorDetails
Creates an instance of aDoctorDetailsrecord class.- Parameters:
specialization- the value for thespecializationrecord componentdepartment- the value for thedepartmentrecord component
-
-
Method Details
-
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). -
specialization
Returns the value of thespecializationrecord component.- Returns:
- the value of the
specializationrecord component
-
department
Returns the value of thedepartmentrecord component.- Returns:
- the value of the
departmentrecord component
-