Procházet zdrojové kódy

Enum Geschlecht mit parseChar ausgestattet.

hapi
Ileana Krontsi před 10 roky
committed by ikrontsi
rodič
revize
4ff091ff31
1 změnil soubory, kde provedl 13 přidání a 2 odebrání
  1. +13
    -2
      src/main/java/de/uniluebeck/mi/projmi6/model/Patient.java

+ 13
- 2
src/main/java/de/uniluebeck/mi/projmi6/model/Patient.java Zobrazit soubor

@@ -27,7 +27,6 @@ public class Patient extends Version {
private SimpleStringProperty cave = new SimpleStringProperty(this, "cave");



public int getPatID() {
return patID.get();
}
@@ -210,6 +209,18 @@ public class Patient extends Version {
this.geschlecht = geschlecht;
}

public static Geschlecht parseChar(final char id) {
switch (id) {
case 'm':
return MALE;
case 'w':
return FEMALE;
case 'o':
default:
return OTHER;
}

}

@Override
public String toString() {
@@ -237,4 +248,4 @@ public class Patient extends Version {
return familienstand;
}
}
}
}

Načítá se…
Zrušit
Uložit