Record Class PatientData
java.lang.Object
java.lang.Record
cz.cuni.kubinja.hospitalsystem.personnel.util.PatientData
- Record Components:
person- Person data that describe possible patient.details- Patient details that describe possible patient.
Wrapper for data from which can be created patient.
-
Constructor Summary
ConstructorsConstructorDescriptionPatientData(PersonData person, PatientsDetails details) Creates an instance of aPatientDatarecord 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
-