I’m wondering what the best java like container would it be for
<Key, <pairOfType1,pairOfType2>>
I have an object1 that is the key and a t1 and t2.
My classes have the fallowing attributes:
public class Patient implements Externalizable {
protected int iD;
protected String name;
protected String CNP;
protected int age;
public class Treatment implements Externalizable {
protected int iD;
protected String description;
public class Diagnosis implements Externalizable {
protected int iD;
protected String name;
protected String description;
protected String date;
PS: I curious for a ‘real program’ since my requirements are to wasve.
I have considered the idea of
private Map<Patient, <Diagnosis, Treatmet>> map = new Map<>();
Why can’t you just put your Diagnosis and Treatment in a class and pass
where