Record Class DoctorData
java.lang.Object
java.lang.Record
cz.cuni.kubinja.hospitalsystem.personnel.util.DoctorData
- Record Components:
person- Person data that describe possible doctor.details- Doctor details that describe possible doctor.
Wrapper for data from which can be created doctor.
-
Constructor Summary
ConstructorsConstructorDescriptionDoctorData(PersonData person, DoctorDetails details) Creates an instance of aDoctorDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptiondetails()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.person()Returns the value of thepersonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
person
-
details
-