私はコンテナのような最高のJavaが何であるか疑問に思っています
<Key, <pairOfType1,pairOfType2>>
キーである object1 と t1 および t2 があります。
私のクラスには次の属性があります。
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: 私の要件は無駄であるため、「実際のプログラム」に興味があります。という考え方を検討しました
private Map<Patient, <Diagnosis, Treatmet>> map = new Map<>();